This repository has been archived by the owner on Mar 7, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:napalm-automation/napalm-eos into…
… dbarrosop/updated_test_framework
- Loading branch information
Showing
24 changed files
with
622 additions
and
63 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
test/unit/mocked_data/test_get_arp_table/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 |
---|---|---|
@@ -1 +1 @@ | ||
[{"interface": "Ethernet45", "ip": "172.17.17.1", "mac": "dc:38:e1:11:97:cf", "age": 0.0}, {"interface": "Ethernet36", "ip": "172.17.17.1", "mac": "90:e2:ba:5c:25:fd", "age": 0.0}] | ||
[{"interface": "Ethernet45", "ip": "172.17.17.1", "mac": "DC:38:E1:11:97:CF", "age": 0.0}, {"interface": "Ethernet36", "ip": "172.17.17.1", "mac": "90:E2:BA:5C:25:FD", "age": 0.0}] |
91 changes: 91 additions & 0 deletions
91
test/unit/mocked_data/test_get_bgp_neighbors/issue58_neighbor_down/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": 1452696202, | ||
"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": 1452680643, | ||
"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": 1452681618, | ||
"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": 0, | ||
"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 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
..._46__Unicast:.__0-9____Local_AS_Desc.text → ...st:.__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 |
---|---|---|
@@ -1,10 +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 Unicast: 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 Unicast: 0 0 | ||
Local AS is 65002, local router ID 192.168.56.2 |
12 changes: 12 additions & 0 deletions
12
...e_remote_AS___remote_router_ID___s_IPv_46__Unicast:.__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 Unicast: 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 Unicast: 0 0 | ||
Local AS is 65002, local router ID 192.168.56.2 |
37 changes: 37 additions & 0 deletions
37
...mocked_data/test_get_bgp_neighbors/issue58_neighbor_down/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 | ||
} | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
..._46__Unicast:.__0-9____Local_AS_Desc.text → ...st:.__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 |
---|---|---|
@@ -1,10 +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 |
24 changes: 24 additions & 0 deletions
24
...cked_data/test_get_bgp_neighbors/issue58_neighbor_down/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,24 @@ | ||
{ | ||
"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 | ||
} | ||
}, | ||
"vrf": "default", | ||
"asn": 65001 | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...lude_remote_AS___remote_router_ID__IPv_46__Unicast:.__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 Unicast: 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 Unicast: 0 0 | ||
Local AS is 65002, local router ID 192.168.56.2 |
12 changes: 12 additions & 0 deletions
12
...lude_remote_AS___remote_router_ID__IPv_46__Unicast:.__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 |
1 change: 1 addition & 0 deletions
1
...data/test_get_bgp_neighbors_detail/issue68_neighbor_no_local_address/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 @@ | ||
{"default": {"65001": [{"suppress_4byte_as": false, "local_as_prepend": false, "connection_state": "Established", "multihop": false, "input_messages": 112017, "previous_connection_state": "OpenConfirm", "output_messages": 111658, "remove_private_as": false, "multipath": false, "messages_queued_out": 0, "keepalive": 60, "remote_as": 65001, "local_port": 0, "active_prefix_count": 0, "configured_holdtime": 180, "routing_table": "default", "flap_count": 0, "suppressed_prefix_count": 0, "local_address": "", "remote_port": 179, "input_updates": 522, "configured_keepalive": 60, "router_id": "192.168.56.2", "export_policy": "out-policy", "local_as": 65001, "remote_address": "2001:7f8::f10:0:2", "advertised_prefix_count": 0, "local_address_configured": false, "import_policy": "in-policy", "last_event": "RecvKeepAlive", "accepted_prefix_count": 0, "up": true, "output_updates": 6, "received_prefix_count": 0, "holdtime": 180}], "65002": [{"suppress_4byte_as": false, "local_as_prepend": false, "connection_state": "Established", "multihop": false, "input_messages": 93716, "previous_connection_state": "OpenConfirm", "output_messages": 93655, "remove_private_as": false, "multipath": false, "messages_queued_out": 0, "keepalive": 60, "remote_as": 65002, "local_port": 179, "active_prefix_count": 0, "configured_holdtime": 180, "routing_table": "default", "flap_count": 0, "suppressed_prefix_count": 0, "local_address": "192.168.56.3", "remote_port": 45048, "input_updates": 68, "configured_keepalive": 60, "router_id": "192.168.56.2", "export_policy": "IBGP-MESH-OUT", "local_as": 65001, "remote_address": "192.168.56.2", "advertised_prefix_count": 2, "local_address_configured": true, "import_policy": "IBGP-MESH-IN", "last_event": "RecvKeepAlive", "accepted_prefix_count": 0, "up": true, "output_updates": 6, "received_prefix_count": 8, "holdtime": 180}]}} |
65 changes: 65 additions & 0 deletions
65
...bgp_neighbors_detail/issue68_neighbor_no_local_address/show_ip_bgp_neighbors_vrf_all.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,65 @@ | ||
BGP neighbor is 192.168.56.2, remote AS 65002, internal link | ||
Description: IBGP_peer | ||
BGP version 4, remote router ID 192.168.56.2, VRF default | ||
Inherits configuration from and member of peer-group IBGP-MESH | ||
Negotiated BGP version 4 | ||
Last read 00:00:06, last write 00:00:06 | ||
Hold time is 180, keepalive interval is 60 seconds | ||
Configured hold time is 180, keepalive interval is 60 seconds | ||
Connect timer is inactive | ||
Configured idle-restart time is 300 seconds | ||
Idle-restart timer is inactive | ||
BGP state is Established, up for 65d00h | ||
Number of transitions to established: 1 | ||
Last state was OpenConfirm | ||
Last event was RecvKeepAlive | ||
Last rcvd socket-error:received unexpected EOF, Last time 65d00h | ||
Neighbor Capabilities: | ||
Multiprotocol IPv4 Unicast: advertised and received and negotiated | ||
Four Octet ASN: advertised and received | ||
Route Refresh: advertised and received and negotiated | ||
Send End-of-RIB messages: advertised and received and negotiated | ||
Additional-paths Receive: | ||
IPv4 Unicast: advertised and received | ||
Restart timer is inactive | ||
End of rib timer is inactive | ||
Message statistics: | ||
InQ depth is 0 | ||
OutQ depth is 0 | ||
Sent Rcvd | ||
Opens: 2 1 | ||
Notifications: 0 0 | ||
Updates: 6 68 | ||
Keepalives: 93647 93647 | ||
Route-Refresh: 0 0 | ||
Total messages: 93655 93716 | ||
Prefix statistics: | ||
Sent Rcvd | ||
IPv4 Unicast: 2 8 | ||
IPv6 Unicast: 0 0 | ||
Inbound route map is IBGP-MESH-IN | ||
Outbound route map is IBGP-MESH-OUT | ||
Local AS is 65001, local router ID 192.168.56.3 | ||
TTL is 255 | ||
Local TCP address is 192.168.56.3, local port is 179 | ||
Remote TCP address is 192.168.56.2, remote port is 45048 | ||
Auto-Local-Addr is disabled | ||
TCP Socket Information: | ||
TCP state is ESTABLISHED | ||
Outgoing Maximum Segment Size (MSS): 1448 | ||
Total Number of TCP retransmissions: 26 | ||
Options: | ||
Timestamps enabled: yes | ||
Selective Acknowledgments enabled: yes | ||
Window Scale enabled: yes | ||
Explicit Congestion Notification (ECN) enabled: no | ||
Socket Statistics: | ||
Window Scale (wscale): 7,7 | ||
Retransmission Timeout (rto): 336.0ms | ||
Round-trip Time (rtt/rtvar): 124.0ms/3.0ms | ||
Delayed Ack Timeout (ato): 40.0ms | ||
Congestion Window (cwnd): 5 | ||
Slow-start Threshold (ssthresh): 3 | ||
TCP Throughput: 0.47 Mbps | ||
Recv Round-trip Time (rcv_rtt): 116.0ms | ||
Advertised Recv Window (rcv_space): 14480 |
37 changes: 37 additions & 0 deletions
37
...t_bgp_neighbors_detail/issue68_neighbor_no_local_address/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 | ||
} | ||
} | ||
} |
Oops, something went wrong.