mirror of
https://github.com/napalm-automation-community/napalm-vyos.git
synced 2026-03-01 03:14:50 +00:00
unit tests, fix returned data
This commit is contained in:
@@ -0,0 +1 @@
|
||||
[{"interface": "eth1", "ip": "10.0.12.33", "mac": "00:00:00:00:00:00", "age": 0.0}, {"interface": "eth1", "ip": "10.0.12.1", "mac": "08:00:27:60:0f:ee", "age": 0.0}, {"interface": "eth0", "ip": "10.0.2.2", "mac": "52:54:00:12:35:02", "age": 0.0}]
|
||||
@@ -0,0 +1,5 @@
|
||||
Address HWtype HWaddress Flags Mask Iface
|
||||
10.0.12.33 (incomplete) eth1
|
||||
10.0.12.1 ether 08:00:27:60:0f:ee C eth1
|
||||
10.0.2.2 ether 52:54:00:12:35:02 C eth0
|
||||
10.0.2.3 ether 52:54:00:12:35:03 C eth0
|
||||
@@ -0,0 +1 @@
|
||||
{"global": {"router_id": "10.2.2.2", "peers": {"10.0.12.1": {"is_enabled": true, "uptime": 864000, "remote_as": 65001, "description": "", "remote_id": "10.1.1.1", "local_as": 65002, "is_up": true, "address_family": {"ipv4": {"sent_prefixes": -1, "accepted_prefixes": 4, "received_prefixes": 4}}}}}}
|
||||
@@ -0,0 +1,43 @@
|
||||
BGP neighbor is 10.0.12.1, remote AS 65001, local AS 65002, external link
|
||||
BGP version 4, remote router ID 10.1.1.1
|
||||
BGP state = Established, up for 01w3d00h
|
||||
Last read 03:39:29, hold time is 90, keepalive interval is 30 seconds
|
||||
Neighbor capabilities:
|
||||
4 Byte AS: advertised and received
|
||||
Route refresh: advertised and received(old & new)
|
||||
Address family IPv4 Unicast: advertised and received
|
||||
Graceful Restart Capabilty: received
|
||||
Remote Restart timer is 120 seconds
|
||||
Address families by peer:
|
||||
none
|
||||
Graceful restart informations:
|
||||
End-of-RIB send: IPv4 Unicast
|
||||
End-of-RIB received:
|
||||
Message statistics:
|
||||
Inq depth is 0
|
||||
Outq depth is 0
|
||||
Sent Rcvd
|
||||
Opens: 2 2
|
||||
Notifications: 1 0
|
||||
Updates: 4 2
|
||||
Keepalives: 33375 36937
|
||||
Route Refresh: 0 0
|
||||
Capability: 0 0
|
||||
Total: 33382 36941
|
||||
Minimum time between advertisement runs is 30 seconds
|
||||
|
||||
For address family: IPv4 Unicast
|
||||
Community attribute sent to this neighbor(both)
|
||||
Outbound path policy configured
|
||||
Route map for outgoing advertisements is *EXPORT-POLICY
|
||||
4 accepted prefixes
|
||||
|
||||
Connections established 2; dropped 1
|
||||
Last reset 01w3d00h, due to User reset
|
||||
Local host: 10.0.12.2, Local port: 33945
|
||||
Foreign host: 10.0.12.1, Foreign port: 179
|
||||
Nexthop: 10.0.12.2
|
||||
Nexthop global: fe80::a00:27ff:fe41:d5f8
|
||||
Nexthop local: ::
|
||||
BGP connection: non shared network
|
||||
Read thread: on Write thread: off
|
||||
@@ -0,0 +1,9 @@
|
||||
BGP router identifier 10.2.2.2, local AS number 65002
|
||||
IPv4 Unicast - max multipaths: ebgp 1 ibgp 1
|
||||
RIB entries 9, using 864 bytes of memory
|
||||
Peers 1, using 4560 bytes of memory
|
||||
|
||||
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
|
||||
10.0.12.1 4 65001 36938 33380 0 0 0 01w3d00h 4
|
||||
|
||||
Total number of neighbors 1
|
||||
@@ -0,0 +1 @@
|
||||
{"fans": {"invalid": {"status": false}}, "memory": {"available_ram": 250112, "used_ram": 228668}, "temperature": {"invalid": {"is_alert": false, "temperature": 0.0, "is_critical": false}}, "power": {"invalid": {"status": true, "output": 0.0, "capacity": 0.0}}, "cpu": {"0": {"%usage": 1.0}}}
|
||||
@@ -0,0 +1,4 @@
|
||||
total used free shared buffers cached
|
||||
Mem: 250112 222708 27404 0 45144 93184
|
||||
-/+ buffers/cache: 84380 165732
|
||||
Swap: 0 0 0
|
||||
@@ -0,0 +1,3 @@
|
||||
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
|
||||
r b swpd free buff cache si so bi bo in cs us sy id wa
|
||||
0 0 0 27460 45136 93184 0 0 0 0 15 24 0 0 99 0
|
||||
@@ -0,0 +1 @@
|
||||
{"os_version": "1.1.7", "uptime": 1043562, "interface_list": ["eth1", "eth0", "lo"], "vendor": "VyOS", "serial_number": "0", "model": "VirtualBox", "hostname": "vyos2", "fqdn": ""}
|
||||
@@ -0,0 +1 @@
|
||||
{"lo": {"is_enabled": true, "description": "", "last_flapped": -1.0, "is_up": true, "mac_address": "00:00:00:00:00:00", "speed": 0}, "eth1": {"is_enabled": true, "description": "", "last_flapped": -1.0, "is_up": true, "mac_address": "08:00:27:41:d5:f8", "speed": 0}, "eth0": {"is_enabled": true, "description": "", "last_flapped": -1.0, "is_up": true, "mac_address": "08:00:27:c5:c9:67", "speed": 0}}
|
||||
@@ -0,0 +1,9 @@
|
||||
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
|
||||
Interface IP Address S/L Description
|
||||
--------- ---------- --- -----------
|
||||
eth0 10.0.2.15/24 u/u
|
||||
eth1 10.0.12.2/24 u/u
|
||||
lo 127.0.0.1/8 u/u
|
||||
10.2.2.2/32
|
||||
8.8.8.8/32
|
||||
::1/128
|
||||
@@ -0,0 +1 @@
|
||||
{"eth1": {"tx_discards": 0, "tx_unicast_packets": 1124144, "rx_broadcast_packets": -1, "rx_discards": 0, "tx_multicast_packets": -1, "tx_octets": 128843591, "tx_errors": 0, "rx_octets": 128902602, "rx_errors": 0, "tx_broadcast_packets": -1, "rx_multicast_packets": 0, "rx_unicast_packets": 1123974}, "eth0": {"tx_discards": 0, "tx_unicast_packets": 1228025, "rx_broadcast_packets": -1, "rx_discards": 0, "tx_multicast_packets": -1, "tx_octets": 341284276, "tx_errors": 0, "rx_octets": 136039132, "rx_errors": 0, "tx_broadcast_packets": -1, "rx_multicast_packets": 0, "rx_unicast_packets": 1231464}}
|
||||
@@ -0,0 +1,37 @@
|
||||
eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
|
||||
link/ether 08:00:27:c5:c9:67 brd ff:ff:ff:ff:ff:ff
|
||||
inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0
|
||||
valid_lft forever preferred_lft forever
|
||||
inet6 fe80::a00:27ff:fec5:c967/64 scope link
|
||||
valid_lft forever preferred_lft forever
|
||||
|
||||
RX: bytes packets errors dropped overrun mcast
|
||||
136000952 1231123 0 0 0 0
|
||||
TX: bytes packets errors dropped carrier collisions
|
||||
341194779 1227696 0 0 0 0
|
||||
eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
|
||||
link/ether 08:00:27:41:d5:f8 brd ff:ff:ff:ff:ff:ff
|
||||
inet 10.0.12.2/24 brd 10.0.12.255 scope global eth1
|
||||
valid_lft forever preferred_lft forever
|
||||
inet6 fe80::a00:27ff:fe41:d5f8/64 scope link
|
||||
valid_lft forever preferred_lft forever
|
||||
|
||||
RX: bytes packets errors dropped overrun mcast
|
||||
128872155 1123706 0 0 0 0
|
||||
TX: bytes packets errors dropped carrier collisions
|
||||
128813163 1123876 0 0 0 0
|
||||
lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
|
||||
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
|
||||
inet 127.0.0.1/8 scope host lo
|
||||
valid_lft forever preferred_lft forever
|
||||
inet 10.2.2.2/32 scope global lo
|
||||
valid_lft forever preferred_lft forever
|
||||
inet 8.8.8.8/32 scope global lo
|
||||
valid_lft forever preferred_lft forever
|
||||
inet6 ::1/128 scope host
|
||||
valid_lft forever preferred_lft forever
|
||||
|
||||
RX: bytes packets errors dropped overrun mcast
|
||||
75048164 1249364 0 0 0 0
|
||||
TX: bytes packets errors dropped carrier collisions
|
||||
75048164 1249364 0 0 0 0
|
||||
@@ -0,0 +1 @@
|
||||
{"lo": {"ipv4": {"8.8.8.8": {"prefix_length": 32}, "127.0.0.1": {"prefix_length": 8}, "10.2.2.2": {"prefix_length": 32}}}, "eth1": {"ipv4": {"10.0.12.2": {"prefix_length": 24}}}, "eth0": {"ipv4": {"10.0.2.15": {"prefix_length": 24}}}}
|
||||
@@ -0,0 +1 @@
|
||||
{"31.216.56.5": {}, "46.175.224.7": {}, "91.212.242.21": {}}
|
||||
@@ -0,0 +1,5 @@
|
||||
remote refid st t when poll reach delay offset jitter
|
||||
==============================================================================
|
||||
31.216.56.5 .INIT. 16 u - 1024 0 0.000 0.000 0.000
|
||||
46.175.224.7 .INIT. 16 u - 1024 0 0.000 0.000 0.000
|
||||
91.212.242.21 .INIT. 16 u - 1024 0 0.000 0.000 0.000
|
||||
@@ -0,0 +1 @@
|
||||
[{"jitter": 0.0, "synchronized": false, "offset": 0.0, "referenceid": ".INIT.", "remote": "31.216.56.5", "reachability": 0, "when": "0", "delay": 0.0, "hostpoll": 1024, "stratum": 16, "type": "u"}, {"jitter": 0.0, "synchronized": false, "offset": 0.0, "referenceid": ".INIT.", "remote": "46.175.224.7", "reachability": 0, "when": "0", "delay": 0.0, "hostpoll": 1024, "stratum": 16, "type": "u"}, {"jitter": 0.0, "synchronized": false, "offset": 0.0, "referenceid": ".INIT.", "remote": "91.212.242.21", "reachability": 0, "when": "0", "delay": 0.0, "hostpoll": 1024, "stratum": 16, "type": "u"}]
|
||||
@@ -0,0 +1,5 @@
|
||||
remote refid st t when poll reach delay offset jitter
|
||||
==============================================================================
|
||||
31.216.56.5 .INIT. 16 u - 1024 0 0.000 0.000 0.000
|
||||
46.175.224.7 .INIT. 16 u - 1024 0 0.000 0.000 0.000
|
||||
91.212.242.21 .INIT. 16 u - 1024 0 0.000 0.000 0.000
|
||||
@@ -0,0 +1 @@
|
||||
{"contact": "admin@foo.corp", "location": "PL,Krakow", "community": {"commro": {"mode": "ro", "acl": ""}}, "chassis_id": ""}
|
||||
@@ -0,0 +1 @@
|
||||
{"vagrant": {"password": "$6$fcHhBu3T$WLmiu6/txlEfWK5uh4mKE8v7qocuftsoAN1oHqPIIoogXAX8zS.SKhB105EExYU6yBy4cKHUD/Q6Mm7CUbVTr.", "sshkeys": ["AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ=="], "level": 15}, "vyos": {"password": "$1$yHIMnG/J$aWDkd3oDYSYps8twB5vpw1", "sshkeys": [], "level": 15}}
|
||||
@@ -0,0 +1 @@
|
||||
{"success": {"packet_loss": 0, "rtt_stddev": 0.123, "rtt_min": 0.086, "results": [{"rtt": 0.175, "ip_address": "8.8.8.8"}], "rtt_avg": 0.175, "rtt_max": 0.417, "probes_sent": 5}}
|
||||
@@ -0,0 +1,10 @@
|
||||
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
|
||||
64 bytes from 8.8.8.8: icmp_req=1 ttl=64 time=0.112 ms
|
||||
64 bytes from 8.8.8.8: icmp_req=2 ttl=64 time=0.114 ms
|
||||
64 bytes from 8.8.8.8: icmp_req=3 ttl=64 time=0.136 ms
|
||||
64 bytes from 8.8.8.8: icmp_req=4 ttl=64 time=0.112 ms
|
||||
64 bytes from 8.8.8.8: icmp_req=5 ttl=64 time=0.112 ms
|
||||
|
||||
--- 8.8.8.8 ping statistics ---
|
||||
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
|
||||
rtt min/avg/max/mdev = 0.112/0.117/0.136/0.011 ms
|
||||
Reference in New Issue
Block a user