unit tests, fix returned data

This commit is contained in:
Pieprzycki Piotr
2016-11-11 23:35:51 +01:00
parent 681797fc6d
commit 0518980ab8
42 changed files with 713 additions and 142 deletions

View File

@@ -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}}

View File

@@ -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