-
Notifications
You must be signed in to change notification settings - Fork 559
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1923 from napalm-automation/issue-1922
- Loading branch information
Showing
10 changed files
with
269 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
test/eos/mocked_data/test_get_network_instances/issue-1922/expected_result.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"management": { | ||
"name": "management", | ||
"type": "L3VRF", | ||
"state": { "route_distinguisher": "" }, | ||
"interfaces": { "interface": { "Management1": {} } } | ||
}, | ||
"default": { | ||
"interfaces": { | ||
"interface": { | ||
"Ethernet1": {}, | ||
"Ethernet2": {}, | ||
"Ethernet3": {}, | ||
"Ethernet4": {}, | ||
"Ethernet49/1": {}, | ||
"Ethernet5": {}, | ||
"Ethernet50/1": {}, | ||
"Ethernet52/1": {}, | ||
"Ethernet53/1": {}, | ||
"Ethernet54/1": {}, | ||
"Ethernet55/1": {}, | ||
"Ethernet56/1": {}, | ||
"Loopback0": {} | ||
} | ||
}, | ||
"state": { "route_distinguisher": "" }, | ||
"type": "DEFAULT_INSTANCE", | ||
"name": "default" | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
test/eos/mocked_data/test_get_network_instances/issue-1922/show_vrf.text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Maximum number of vrfs allowed: 1023 | ||
VRF RD Protocols State Interfaces | ||
---------------- --------------- --------------- ------------------- --------------------------- | ||
default <not set> ipv4,ipv6 v4:routing, Ethernet1, Ethernet2, | ||
v6:no routing Ethernet3, Ethernet4, | ||
Ethernet49/1, Ethernet5, | ||
Ethernet50/1, Ethernet52/1, | ||
Ethernet53/1, Ethernet54/1, | ||
Ethernet55/1, Ethernet56/1, | ||
Loopback0 | ||
management <not set> ipv4,ipv6 v4:routing, Management1 | ||
v6:no routing |
16 changes: 8 additions & 8 deletions
16
test/eos/mocked_data/test_get_network_instances/issue-509/show_vrf.text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
Maximum number of vrfs allowed: 14 | ||
Vrf RD Protocols State Interfaces | ||
------- ------------ ------------ ------------------- ------------------- | ||
VRFA0 201:201 ipv4 v4:routing; multicast, Vlan2, Vlan102 | ||
v6:no routing | ||
Vrf RD Protocols State Interfaces | ||
------- --------- ------------ ------------------------ ------------------- | ||
VRFA0 201:201 ipv4 v4:routing; multicast, Vlan2, Vlan102 | ||
v6:no routing | ||
|
||
VRFA1 203:203 ipv4 v4:routing; multicast, Vlan3, Vlan103 | ||
v6:no routing | ||
VRFA1 203:203 ipv4 v4:routing; multicast, Vlan3, Vlan103 | ||
v6:no routing | ||
|
||
VRFA2 205:205 ipv4 v4:routing; multicast, Ethernet1, Vlan100 | ||
v6:no routing | ||
VRFA2 205:205 ipv4 v4:routing; multicast, Ethernet1, Vlan100 | ||
v6:no routing |
1 change: 1 addition & 0 deletions
1
test/eos/mocked_data/test_get_network_instances/vrf/cli_version.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2 |
31 changes: 31 additions & 0 deletions
31
test/eos/mocked_data/test_get_network_instances/vrf/expected_result.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"default": { | ||
"name": "default", | ||
"type": "DEFAULT_INSTANCE", | ||
"state": { "route_distinguisher": "" }, | ||
"interfaces": { | ||
"interface": { | ||
"Ethernet1": {}, | ||
"Ethernet2": {}, | ||
"Loopback0": {}, | ||
"Management0": {} | ||
} | ||
} | ||
}, | ||
"foo": { | ||
"name": "foo", | ||
"type": "L3VRF", | ||
"state": { "route_distinguisher": "0:1" }, | ||
"interfaces": { | ||
"interface": {} | ||
} | ||
}, | ||
"bar": { | ||
"name": "bar", | ||
"type": "L3VRF", | ||
"state": { "route_distinguisher": "" }, | ||
"interfaces": { | ||
"interface": {} | ||
} | ||
} | ||
} |
61 changes: 61 additions & 0 deletions
61
test/eos/mocked_data/test_get_network_instances/vrf/show_vrf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"vrfs": { | ||
"foo": { | ||
"routeDistinguisher": "0:1", | ||
"protocols": { | ||
"ipv4": { | ||
"supported": true, | ||
"protocolState": "up", | ||
"routingState": "up" | ||
}, | ||
"ipv6": { | ||
"supported": true, | ||
"protocolState": "up", | ||
"routingState": "down" | ||
} | ||
}, | ||
"vrfState": "up", | ||
"interfacesV4": [], | ||
"interfacesV6": [], | ||
"interfaces": [] | ||
}, | ||
"bar": { | ||
"routeDistinguisher": "", | ||
"protocols": { | ||
"ipv4": { | ||
"supported": true, | ||
"protocolState": "up", | ||
"routingState": "down" | ||
}, | ||
"ipv6": { | ||
"supported": true, | ||
"protocolState": "up", | ||
"routingState": "down" | ||
} | ||
}, | ||
"vrfState": "up", | ||
"interfacesV4": [], | ||
"interfacesV6": [], | ||
"interfaces": [] | ||
}, | ||
"default": { | ||
"routeDistinguisher": "", | ||
"protocols": { | ||
"ipv4": { | ||
"supported": true, | ||
"protocolState": "up", | ||
"routingState": "up" | ||
}, | ||
"ipv6": { | ||
"supported": true, | ||
"protocolState": "up", | ||
"routingState": "down" | ||
} | ||
}, | ||
"vrfState": "up", | ||
"interfacesV4": ["Ethernet1", "Ethernet2", "Loopback0", "Management0"], | ||
"interfacesV6": ["Management0"], | ||
"interfaces": ["Ethernet1", "Ethernet2", "Loopback0", "Management0"] | ||
} | ||
} | ||
} |