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 #497 from afourmy/IOS_get_network_instances
IOS get network instances
- Loading branch information
Showing
4 changed files
with
186 additions
and
0 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
78 changes: 78 additions & 0 deletions
78
test/ios/mocked_data/test_get_network_instances/normal/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,78 @@ | ||
{ | ||
"default":{ | ||
"interfaces":{ | ||
"interface":{ | ||
"GigabitEthernet0/0/0":{ | ||
|
||
}, | ||
"Gi0/0/0.152":{ | ||
|
||
}, | ||
"GigabitEthernet0/0/2":{ | ||
|
||
}, | ||
"Gi0/0/0.1774":{ | ||
|
||
}, | ||
"GigabitEthernet0/0/4":{ | ||
|
||
}, | ||
"Gi0/0/0.1772":{ | ||
|
||
}, | ||
"GigabitEthernet0/0/3":{ | ||
|
||
}, | ||
"Gi0/0/0.154":{ | ||
|
||
}, | ||
"GigabitEthernet0/0/1":{ | ||
|
||
}, | ||
"GigabitEthernet0":{ | ||
|
||
}, | ||
"Gi0/0/0.1776":{ | ||
|
||
}, | ||
"Gi0/0/0.600":{ | ||
|
||
}, | ||
"Loopback2":{ | ||
|
||
} | ||
} | ||
}, | ||
"state":{ | ||
"route_distinguisher":"" | ||
}, | ||
"type":"DEFAULT_INSTANCE", | ||
"name":"default" | ||
}, | ||
"Mgmt-intf":{ | ||
"interfaces":{ | ||
"interface":{ | ||
"Gi0":{ | ||
|
||
} | ||
} | ||
}, | ||
"state":{ | ||
"route_distinguisher":"" | ||
}, | ||
"type":"L3VRF", | ||
"name":"Mgmt-intf" | ||
}, | ||
"opsnet":{ | ||
"interfaces":{ | ||
"interface":{ | ||
|
||
} | ||
}, | ||
"state":{ | ||
"route_distinguisher":"10283:1021312690" | ||
}, | ||
"type":"L3VRF", | ||
"name":"opsnet" | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
test/ios/mocked_data/test_get_network_instances/normal/show_ip_interface_brief.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,17 @@ | ||
Load for five secs: 0%/0%; one minute: 1%; five minutes: 1% | ||
Time source is NTP, 09:30:03.851 DST Wed Nov 8 2017 | ||
|
||
Interface IP-Address OK? Method Status Protocol | ||
GigabitEthernet0/0/0 unassigned YES NVRAM up up | ||
Gi0/0/0.152 192.168.241.21 YES NVRAM up up | ||
Gi0/0/0.154 192.168.241.30 YES NVRAM up up | ||
Gi0/0/0.600 192.168.241.141 YES NVRAM up up | ||
Gi0/0/0.1772 120.177.177.1 YES NVRAM up up | ||
Gi0/0/0.1774 101.177.177.1 YES NVRAM up up | ||
Gi0/0/0.1776 100.177.177.1 YES NVRAM up up | ||
GigabitEthernet0/0/1 unassigned YES NVRAM administratively down down | ||
GigabitEthernet0/0/2 unassigned YES NVRAM administratively down down | ||
GigabitEthernet0/0/3 unassigned YES NVRAM administratively down down | ||
GigabitEthernet0/0/4 unassigned YES NVRAM administratively down down | ||
GigabitEthernet0 192.168.243.80 YES NVRAM up up | ||
Loopback2 192.168.242.152 YES NVRAM up up |
45 changes: 45 additions & 0 deletions
45
test/ios/mocked_data/test_get_network_instances/normal/show_vrf_detail.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,45 @@ | ||
Load for five secs: 0%/0%; one minute: 0%; five minutes: 1% | ||
Time source is NTP, 09:28:50.737 DST Wed Nov 8 2017 | ||
|
||
VRF Mgmt-intf (VRF Id = 1); default RD <not set>; default VPNID <not set> | ||
New CLI format, supports multiple address-families | ||
Flags: 0x1808 | ||
Interfaces: | ||
Gi0 | ||
Address family ipv4 unicast (Table ID = 0x1): | ||
Flags: 0x0 | ||
No Export VPN route-target communities | ||
No Import VPN route-target communities | ||
No import route-map | ||
No global export route-map | ||
No export route-map | ||
VRF label distribution protocol: not configured | ||
VRF label allocation mode: per-prefix | ||
Address family ipv6 unicast (Table ID = 0x1E000001): | ||
Flags: 0x0 | ||
No Export VPN route-target communities | ||
No Import VPN route-target communities | ||
No import route-map | ||
No global export route-map | ||
No export route-map | ||
VRF label distribution protocol: not configured | ||
VRF label allocation mode: per-prefix | ||
Address family ipv4 multicast not active | ||
|
||
VRF opsnet (VRF Id = 2); default RD 10283:1021312690; default VPNID <not set> | ||
New CLI format, supports multiple address-families | ||
Flags: 0x180C | ||
No interfaces | ||
Address family ipv4 unicast (Table ID = 0x2): | ||
Flags: 0x0 | ||
Export VPN route-target communities | ||
RT:10283:50000 | ||
Import VPN route-target communities | ||
RT:10283:50000 | ||
No import route-map | ||
No global export route-map | ||
No export route-map | ||
VRF label distribution protocol: not configured | ||
VRF label allocation mode: per-prefix | ||
Address family ipv6 unicast not active | ||
Address family ipv4 multicast not active |