-
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.
- Loading branch information
Showing
11 changed files
with
194 additions
and
2 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
File renamed without changes.
File renamed without changes.
91 changes: 91 additions & 0 deletions
91
test/eos/mocked_data/test_get_bgp_neighbors/issue944/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,91 @@ | ||
{ | ||
"global": { | ||
"router_id": "192.168.56.3", | ||
"peers": { | ||
"192.168.56.4": { | ||
"is_enabled": true, | ||
"uptime": "...", | ||
"remote_as": 65001, | ||
"description": "", | ||
"remote_id": "192.168.56.3", | ||
"local_as": 65002, | ||
"is_up": false, | ||
"address_family": { | ||
"ipv4": { | ||
"sent_prefixes": 0, | ||
"accepted_prefixes": -1, | ||
"received_prefixes": 0 | ||
}, | ||
"ipv6": { | ||
"sent_prefixes": 0, | ||
"accepted_prefixes": -1, | ||
"received_prefixes": 0 | ||
} | ||
} | ||
}, | ||
"192.168.56.2": { | ||
"is_enabled": true, | ||
"uptime": "...", | ||
"remote_as": 65002, | ||
"description": "", | ||
"remote_id": "192.168.56.2", | ||
"local_as": 65001, | ||
"is_up": true, | ||
"address_family": { | ||
"ipv4": { | ||
"sent_prefixes": 0, | ||
"accepted_prefixes": -1, | ||
"received_prefixes": 0 | ||
}, | ||
"ipv6": { | ||
"sent_prefixes": 0, | ||
"accepted_prefixes": -1, | ||
"received_prefixes": 0 | ||
} | ||
} | ||
}, | ||
"2001:7f8::f10:0:2": { | ||
"is_enabled": true, | ||
"uptime": "...", | ||
"remote_as": 65002, | ||
"description": "", | ||
"remote_id": "192.168.56.2", | ||
"local_as": 65001, | ||
"is_up": true, | ||
"address_family": { | ||
"ipv4": { | ||
"sent_prefixes": 0, | ||
"accepted_prefixes": -1, | ||
"received_prefixes": 0 | ||
}, | ||
"ipv6": { | ||
"sent_prefixes": 0, | ||
"accepted_prefixes": -1, | ||
"received_prefixes": 0 | ||
} | ||
} | ||
}, | ||
"2001:7f8::f10:0:3": { | ||
"is_enabled": true, | ||
"uptime": "...", | ||
"remote_as": 65001, | ||
"description": "", | ||
"remote_id": "192.168.56.3", | ||
"local_as": 65002, | ||
"is_up": false, | ||
"address_family": { | ||
"ipv4": { | ||
"sent_prefixes": 0, | ||
"accepted_prefixes": -1, | ||
"received_prefixes": 0 | ||
}, | ||
"ipv6": { | ||
"sent_prefixes": 0, | ||
"accepted_prefixes": -1, | ||
"received_prefixes": 0 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...emote_AS___remote_router_ID__IPv_46___Unicast_6PE_____0_9____Local_AS_Desc_BGP_state.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 @@ | ||
BGP neighbor is 192.168.56.2, remote AS 65002, external link | ||
BGP version 4, remote router ID 192.168.56.2, VRF default | ||
BGP state is Established, up for 32d16h | ||
IPv4 Unicast: 0 0 | ||
IPv6 6PE: 0 0 | ||
Local AS is 65001, local router ID 192.168.56.3 | ||
BGP neighbor is 192.168.56.4, remote AS 65001, external link | ||
BGP version 4, remote router ID 192.168.56.3, VRF default | ||
BGP state is Established, up for 32d16h | ||
IPv4 Unicast: 0 0 | ||
IPv6 6PE: 0 0 | ||
Local AS is 65002, local router ID 192.168.56.2 |
37 changes: 37 additions & 0 deletions
37
test/eos/mocked_data/test_get_bgp_neighbors/issue944/show_ip_bgp_summary_vrf_all.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,37 @@ | ||
{ | ||
"vrfs": { | ||
"default": { | ||
"routerId": "192.168.56.3", | ||
"peers": { | ||
"192.168.56.2": { | ||
"msgSent": 6, | ||
"inMsgQueue": 0, | ||
"prefixReceived": 0, | ||
"upDownTime": 1452680643.198489, | ||
"version": 4, | ||
"msgReceived": 5, | ||
"prefixAccepted": 0, | ||
"peerState": "Established", | ||
"outMsgQueue": 0, | ||
"underMaintenance": false, | ||
"asn": 65002 | ||
}, | ||
"192.168.56.4": { | ||
"msgSent": 267, | ||
"inMsgQueue": 0, | ||
"prefixReceived": 0, | ||
"upDownTime": 1452696202.499104, | ||
"version": 4, | ||
"msgReceived": 263, | ||
"prefixAccepted": 0, | ||
"peerState": "Active", | ||
"outMsgQueue": 0, | ||
"underMaintenance": false, | ||
"asn": 65001 | ||
} | ||
}, | ||
"vrf": "default", | ||
"asn": 65001 | ||
} | ||
} | ||
} |
File renamed without changes.
37 changes: 37 additions & 0 deletions
37
test/eos/mocked_data/test_get_bgp_neighbors/issue944/show_ipv6_bgp_summary_vrf_all.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,37 @@ | ||
{ | ||
"vrfs": { | ||
"default": { | ||
"routerId": "192.168.56.3", | ||
"peers": { | ||
"2001:7f8::f10:0:2": { | ||
"msgSent": 5, | ||
"inMsgQueue": 0, | ||
"prefixReceived": 0, | ||
"upDownTime": 1452681618.167685, | ||
"version": 4, | ||
"msgReceived": 5, | ||
"prefixAccepted": 0, | ||
"peerState": "Established", | ||
"outMsgQueue": 0, | ||
"underMaintenance": false, | ||
"asn": 65002 | ||
}, | ||
"2001:7f8::f10:0:3": { | ||
"msgSent": 267, | ||
"inMsgQueue": 0, | ||
"prefixReceived": 0, | ||
"upDownTime": 1452696202.499104, | ||
"version": 4, | ||
"msgReceived": 263, | ||
"prefixAccepted": 0, | ||
"peerState": "Active", | ||
"outMsgQueue": 0, | ||
"underMaintenance": false, | ||
"asn": 65001 | ||
} | ||
}, | ||
"vrf": "default", | ||
"asn": 65001 | ||
} | ||
} | ||
} |
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
...emote_AS___remote_router_ID__IPv_46___Unicast_6PE_____0_9____Local_AS_Desc_BGP_state.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 @@ | ||
BGP neighbor is 2001:7f8::f10:0:2, remote AS 65002, external link | ||
BGP version 4, remote router ID 192.168.56.2, VRF default | ||
BGP state is Established, up for 32d16h | ||
IPv4 Unicast: 0 0 | ||
IPv6 Unicast: 0 0 | ||
Local AS is 65001, local router ID 192.168.56.3 | ||
BGP neighbor is 2001:7f8::f10:0:3, remote AS 65001, external link | ||
BGP version 4, remote router ID 192.168.56.3, VRF default | ||
BGP state is Established, up for 32d16h | ||
IPv4 Unicast: 0 0 | ||
IPv6 Unicast: 0 0 | ||
Local AS is 65002, local router ID 192.168.56.2 |