-
Notifications
You must be signed in to change notification settings - Fork 27
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
4 changed files
with
95 additions
and
1 deletion.
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
2 changes: 1 addition & 1 deletion
2
test/unit/mocked_data/test_get_interfaces/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 @@ | ||
{"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": "...", "speed": 0}, "eth0": {"is_enabled": true, "description": "", "last_flapped": -1.0, "is_up": true, "mac_address": "...", "speed": 0}} | ||
{"lo": {"is_enabled": true, "description": "", "last_flapped": -1.0, "is_up": true, "mac_address": "00:00:00:00:00:00", "mtu": -1, "speed": 0}, "eth1": {"is_enabled": true, "description": "", "last_flapped": -1.0, "is_up": true, "mac_address": "...", "mtu": -1, "speed": 0}, "eth0": {"is_enabled": true, "description": "", "last_flapped": -1.0, "is_up": true, "mac_address": "...", "mtu": -1, "speed": 0}} |
1 change: 1 addition & 0 deletions
1
test/unit/mocked_data/test_get_lldp_neighbors/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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{"eth1": [{"hostname": "branch", "port": "eth0"}], "eth2": [{"hostname": "dmz", "port": "eth0"}]} |
69 changes: 69 additions & 0 deletions
69
test/unit/mocked_data/test_get_lldp_neighbors/normal/show_lldp_neighbors_detail.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,69 @@ | ||
------------------------------------------------------------------------------- | ||
LLDP neighbors: | ||
------------------------------------------------------------------------------- | ||
Interface: eth1, via: LLDP, RID: 2, Time: 1 day, 18:17:44 | ||
Chassis: | ||
ChassisID: mac 52:54:00:99:84:8a | ||
SysName: branch | ||
SysDescr: VyOS 1.3-rolling-202005151915 | ||
MgmtIP: 10.0.0.3 | ||
Capability: Bridge, off | ||
Capability: Router, on | ||
Capability: Wlan, off | ||
Capability: Station, off | ||
Port: | ||
PortID: ifname eth0 | ||
PortDescr: to DC | ||
TTL: 120 | ||
PMD autoneg: supported: yes, enabled: yes | ||
Adv: 10Base-T, HD: yes, FD: yes | ||
Adv: 100Base-TX, HD: yes, FD: yes | ||
MAU oper type: 100BaseTXFD - 2 pair category 5 UTP, full duplex mode | ||
LLDP-MED: | ||
Device Type: Network Connectivity Device | ||
Capability: Capabilities, yes | ||
Capability: Policy, yes | ||
Capability: Location, yes | ||
Capability: MDI/PSE, yes | ||
Capability: MDI/PD, yes | ||
Capability: Inventory, yes | ||
Inventory: | ||
Hardware Revision: pc-i440fx-4.2 | ||
Software Revision: 4.19.122-amd64-vyos | ||
Firmware Revision: 1.13.0-1ubuntu1 | ||
Manufacturer: QEMU | ||
Model: Standard PC (i440FX + PIIX, 1996 | ||
------------------------------------------------------------------------------- | ||
Interface: eth2, via: LLDP, RID: 1, Time: 1 day, 18:17:45 | ||
Chassis: | ||
ChassisID: mac 52:54:00:98:e5:9f | ||
SysName: dmz | ||
SysDescr: VyOS 1.3-rolling-202005151915 | ||
MgmtIP: 10.0.0.2 | ||
Capability: Bridge, off | ||
Capability: Router, on | ||
Capability: Wlan, off | ||
Capability: Station, off | ||
Port: | ||
PortID: ifname eth0 | ||
PortDescr: to DC | ||
TTL: 120 | ||
PMD autoneg: supported: yes, enabled: yes | ||
Adv: 10Base-T, HD: yes, FD: yes | ||
Adv: 100Base-TX, HD: yes, FD: yes | ||
MAU oper type: 100BaseTXFD - 2 pair category 5 UTP, full duplex mode | ||
LLDP-MED: | ||
Device Type: Network Connectivity Device | ||
Capability: Capabilities, yes | ||
Capability: Policy, yes | ||
Capability: Location, yes | ||
Capability: MDI/PSE, yes | ||
Capability: MDI/PD, yes | ||
Capability: Inventory, yes | ||
Inventory: | ||
Hardware Revision: pc-i440fx-4.2 | ||
Software Revision: 4.19.122-amd64-vyos | ||
Firmware Revision: 1.13.0-1ubuntu1 | ||
Manufacturer: QEMU | ||
Model: Standard PC (i440FX + PIIX, 1996 | ||
------------------------------------------------------------------------------- |