Skip to content
This repository has been archived by the owner on Mar 7, 2018. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:napalm-automation/napalm-eos into…
Browse files Browse the repository at this point in the history
… dbarrosop/updated_test_framework
  • Loading branch information
dbarrosop committed Oct 27, 2016
2 parents e747a89 + 08bbf1c commit c8d3001
Show file tree
Hide file tree
Showing 24 changed files with 622 additions and 63 deletions.
138 changes: 84 additions & 54 deletions napalm_eos/eos.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setup(
name="napalm-eos",
version="0.4.0",
version="0.4.1",
packages=find_packages(),
author="David Barroso",
author_email="dbarrosop@dravetech.com",
Expand Down
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}]
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
}
}
}
}
}
}
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
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
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
}
}
}
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
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
}
}
}
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
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
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}]}}
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
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
}
}
}

0 comments on commit c8d3001

Please sign in to comment.