forked from ansible-collections/community.ciscosmb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added facts subset "interfaces" (ansible-collections#20)
* implement 'interface' facts subset * unit tests for 'config' facts subset
- Loading branch information
Showing
10 changed files
with
1,545 additions
and
183 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
91 changes: 91 additions & 0 deletions
91
...lugins/modules/ciscosmb/fixtures/ciscosmb_facts-SG500-52-K9-show_interfaces_configuration
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 @@ | ||
Flow Admin Back Mdix | ||
Port Type Duplex Speed Neg control State Pressure Mode | ||
-------- ------------ ------ ----- -------- ------- ----- -------- ---- | ||
gi1/1 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/2 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/3 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/4 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/5 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/6 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/7 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/8 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/9 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/10 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/11 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/12 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/13 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/14 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/15 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/16 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/17 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/18 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/19 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/20 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/21 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/22 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/23 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/24 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/25 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/26 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/27 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/28 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/29 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/30 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/31 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/32 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/33 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/34 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/35 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/36 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/37 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/38 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/39 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/40 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/41 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/42 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/43 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/44 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/45 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/46 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/47 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/48 1G-Copper Full 1000 Enabled Off Up Disabled Auto | ||
gi1/49 1G-Combo-C Full 1000 Enabled Off Up Disabled Auto | ||
gi1/50 1G-Combo-C Full 1000 Enabled Off Up Disabled Auto | ||
gi1/51 1G-Fiber Full 1000 Disabled Off Up Disabled Auto | ||
gi1/52 1G-Fiber Full 1000 Disabled Off Up Disabled Auto | ||
|
||
Flow Admin | ||
Ch Type Speed Neg control State | ||
-------- ------- ----- -------- ------- ----- | ||
Po1 1G 1000 Enabled Off Up | ||
Po2 -- -- Enabled Off Up | ||
Po3 -- -- Enabled Off Up | ||
Po4 -- -- Enabled Off Up | ||
Po5 -- -- Enabled Off Up | ||
Po6 -- -- Enabled Off Up | ||
Po7 -- -- Enabled Off Up | ||
Po8 -- -- Enabled Off Up | ||
Po9 -- -- Enabled Off Up | ||
Po10 -- -- Enabled Off Up | ||
Po11 -- -- Enabled Off Up | ||
Po12 -- -- Enabled Off Up | ||
Po13 -- -- Enabled Off Up | ||
Po14 -- -- Enabled Off Up | ||
Po15 -- -- Enabled Off Up | ||
Po16 -- -- Enabled Off Up | ||
Po17 -- -- Enabled Off Up | ||
Po18 -- -- Enabled Off Up | ||
Po19 -- -- Enabled Off Up | ||
Po20 -- -- Enabled Off Up | ||
Po21 -- -- Enabled Off Up | ||
Po22 -- -- Enabled Off Up | ||
Po23 -- -- Enabled Off Up | ||
Po24 -- -- Enabled Off Up | ||
Po25 -- -- Enabled Off Up | ||
Po26 -- -- Enabled Off Up | ||
Po27 -- -- Enabled Off Up | ||
Po28 -- -- Enabled Off Up | ||
Po29 -- -- Enabled Off Up | ||
Po30 -- -- Enabled Off Up | ||
Po31 -- -- Enabled Off Up | ||
Po32 -- -- Enabled Off Up |
89 changes: 89 additions & 0 deletions
89
.../plugins/modules/ciscosmb/fixtures/ciscosmb_facts-SG500-52-K9-show_interfaces_description
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,89 @@ | ||
Port Description | ||
------- ----------- | ||
gi1/1 Wifi Controller | ||
gi1/2 WiFi AP | ||
gi1/3 WiFi AP | ||
gi1/4 WiFi AP | ||
gi1/5 Access port | ||
gi1/6 Access port | ||
gi1/7 Access port | ||
gi1/8 Access port | ||
gi1/9 Access port | ||
gi1/10 Access port | ||
gi1/11 Plain VoIP | ||
gi1/12 Access port | ||
gi1/13 Access port | ||
gi1/14 Access port | ||
gi1/15 Access port | ||
gi1/16 Access port | ||
gi1/17 Access port | ||
gi1/18 Plug 7B - sw tests | ||
gi1/19 Access port | ||
gi1/20 | ||
gi1/21 Access port | ||
gi1/22 Access port | ||
gi1/23 Access port | ||
gi1/24 Access port | ||
gi1/25 Access port | ||
gi1/26 Access port | ||
gi1/27 Access port | ||
gi1/28 Access port | ||
gi1/29 Access port | ||
gi1/30 Access port | ||
gi1/31 Access port | ||
gi1/32 Access port | ||
gi1/33 Access port | ||
gi1/34 Access port | ||
gi1/35 Access port | ||
gi1/36 Access port | ||
gi1/37 Access port | ||
gi1/38 Access port | ||
gi1/39 Access port | ||
gi1/40 Plug 7A dock | ||
gi1/41 Access port | ||
gi1/42 Access port | ||
gi1/43 Access port | ||
gi1/44 Access port | ||
gi1/45 Access port | ||
gi1/46 Access port | ||
gi1/47 Access port | ||
gi1/48 Access port | ||
gi1/49 Po1 to sw-ab-cdef-1 | ||
gi1/50 Po1 to sw-ab-cdef-1 | ||
gi1/51 Access port | ||
gi1/52 Access port | ||
|
||
Ch Description | ||
------- ----------- | ||
Po1 Trunk sw-ab-cdef-1 | ||
Po2 | ||
Po3 | ||
Po4 | ||
Po5 | ||
Po6 | ||
Po7 | ||
Po8 | ||
Po9 | ||
Po10 | ||
Po11 | ||
Po12 | ||
Po13 | ||
Po14 | ||
Po15 | ||
Po16 | ||
Po17 | ||
Po18 | ||
Po19 | ||
Po20 | ||
Po21 | ||
Po22 | ||
Po23 | ||
Po24 | ||
Po25 | ||
Po26 | ||
Po27 | ||
Po28 | ||
Po29 | ||
Po30 | ||
Po31 | ||
Po32 |
91 changes: 91 additions & 0 deletions
91
.../unit/plugins/modules/ciscosmb/fixtures/ciscosmb_facts-SG500-52-K9-show_interfaces_status
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 @@ | ||
Flow Link Back Mdix | ||
Port Type Duplex Speed Neg ctrl State Pressure Mode | ||
-------- ------------ ------ ----- -------- ---- ----------- -------- ------- | ||
gi1/1 1G-Copper Full 1000 Enabled Off Up Disabled Off | ||
gi1/2 1G-Copper -- -- -- -- Down -- -- | ||
gi1/3 1G-Copper -- -- -- -- Down -- -- | ||
gi1/4 1G-Copper Full 1000 Enabled Off Up Disabled On | ||
gi1/5 1G-Copper Full 1000 Enabled Off Up Disabled Off | ||
gi1/6 1G-Copper Full 100 Enabled Off Up Disabled On | ||
gi1/7 1G-Copper -- -- -- -- Down -- -- | ||
gi1/8 1G-Copper -- -- -- -- Down -- -- | ||
gi1/9 1G-Copper -- -- -- -- Down -- -- | ||
gi1/10 1G-Copper -- -- -- -- Down -- -- | ||
gi1/11 1G-Copper -- -- -- -- Down -- -- | ||
gi1/12 1G-Copper -- -- -- -- Down -- -- | ||
gi1/13 1G-Copper -- -- -- -- Down -- -- | ||
gi1/14 1G-Copper -- -- -- -- Down -- -- | ||
gi1/15 1G-Copper -- -- -- -- Down -- -- | ||
gi1/16 1G-Copper Full 100 Enabled Off Up Disabled On | ||
gi1/17 1G-Copper -- -- -- -- Down -- -- | ||
gi1/18 1G-Copper Full 1000 Enabled Off Up Disabled On | ||
gi1/19 1G-Copper -- -- -- -- Down -- -- | ||
gi1/20 1G-Copper Full 1000 Enabled Off Up Disabled On | ||
gi1/21 1G-Copper -- -- -- -- Down -- -- | ||
gi1/22 1G-Copper Full 100 Enabled Off Up Disabled On | ||
gi1/23 1G-Copper Full 1000 Enabled Off Up Disabled On | ||
gi1/24 1G-Copper -- -- -- -- Down -- -- | ||
gi1/25 1G-Copper Full 1000 Enabled Off Up Disabled Off | ||
gi1/26 1G-Copper Full 10 Enabled Off Up Disabled Off | ||
gi1/27 1G-Copper -- -- -- -- Down -- -- | ||
gi1/28 1G-Copper Full 100 Enabled Off Up Disabled Off | ||
gi1/29 1G-Copper -- -- -- -- Down -- -- | ||
gi1/30 1G-Copper -- -- -- -- Down -- -- | ||
gi1/31 1G-Copper -- -- -- -- Down -- -- | ||
gi1/32 1G-Copper -- -- -- -- Down -- -- | ||
gi1/33 1G-Copper -- -- -- -- Down -- -- | ||
gi1/34 1G-Copper -- -- -- -- Down -- -- | ||
gi1/35 1G-Copper -- -- -- -- Down -- -- | ||
gi1/36 1G-Copper -- -- -- -- Down -- -- | ||
gi1/37 1G-Copper -- -- -- -- Down -- -- | ||
gi1/38 1G-Copper -- -- -- -- Down -- -- | ||
gi1/39 1G-Copper Full 1000 Enabled Off Up Disabled Off | ||
gi1/40 1G-Copper -- -- -- -- Down -- -- | ||
gi1/41 1G-Copper -- -- -- -- Down -- -- | ||
gi1/42 1G-Copper Full 1000 Enabled Off Up Disabled On | ||
gi1/43 1G-Copper -- -- -- -- Down -- -- | ||
gi1/44 1G-Copper -- -- -- -- Down -- -- | ||
gi1/45 1G-Copper -- -- -- -- Down -- -- | ||
gi1/46 1G-Copper -- -- -- -- Down -- -- | ||
gi1/47 1G-Copper Full 100 Enabled Off Up Disabled On | ||
gi1/48 1G-Copper -- -- -- -- Down -- -- | ||
gi1/49 1G-Combo-C Full 1000 Enabled Off Up Disabled Off | ||
gi1/50 1G-Combo-C Full 1000 Enabled Off Up Disabled On | ||
gi1/51 1G-Fiber -- -- -- -- Down -- -- | ||
gi1/52 1G-Fiber -- -- -- -- Down -- -- | ||
|
||
Flow Link | ||
Ch Type Duplex Speed Neg control State | ||
-------- ------- ------ ----- -------- ------- ----------- | ||
Po1 1G Full 1000 Enabled Off Up | ||
Po2 -- -- -- -- -- Not Present | ||
Po3 -- -- -- -- -- Not Present | ||
Po4 -- -- -- -- -- Not Present | ||
Po5 -- -- -- -- -- Not Present | ||
Po6 -- -- -- -- -- Not Present | ||
Po7 -- -- -- -- -- Not Present | ||
Po8 -- -- -- -- -- Not Present | ||
Po9 -- -- -- -- -- Not Present | ||
Po10 -- -- -- -- -- Not Present | ||
Po11 -- -- -- -- -- Not Present | ||
Po12 -- -- -- -- -- Not Present | ||
Po13 -- -- -- -- -- Not Present | ||
Po14 -- -- -- -- -- Not Present | ||
Po15 -- -- -- -- -- Not Present | ||
Po16 -- -- -- -- -- Not Present | ||
Po17 -- -- -- -- -- Not Present | ||
Po18 -- -- -- -- -- Not Present | ||
Po19 -- -- -- -- -- Not Present | ||
Po20 -- -- -- -- -- Not Present | ||
Po21 -- -- -- -- -- Not Present | ||
Po22 -- -- -- -- -- Not Present | ||
Po23 -- -- -- -- -- Not Present | ||
Po24 -- -- -- -- -- Not Present | ||
Po25 -- -- -- -- -- Not Present | ||
Po26 -- -- -- -- -- Not Present | ||
Po27 -- -- -- -- -- Not Present | ||
Po28 -- -- -- -- -- Not Present | ||
Po29 -- -- -- -- -- Not Present | ||
Po30 -- -- -- -- -- Not Present | ||
Po31 -- -- -- -- -- Not Present | ||
Po32 -- -- -- -- -- Not Present |
13 changes: 13 additions & 0 deletions
13
tests/unit/plugins/modules/ciscosmb/fixtures/ciscosmb_facts-SG500-52-K9-show_ip_interface
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,13 @@ | ||
|
||
|
||
IP Address I/F I/F Status Type Redirect Status | ||
admin/oper | ||
------------------ --------- ---------- ------- -------- ------ | ||
11.30.5.12/18 vlan 1 UP/UP Static enable Valid | ||
|
||
|
||
Gateway IP Address Type | ||
----------------------- -------- | ||
11.30.5.11 static | ||
|
||
|
7 changes: 7 additions & 0 deletions
7
...it/plugins/modules/ciscosmb/fixtures/ciscosmb_facts-SG500-52-K9-show_ipv6_interface_brief
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,7 @@ | ||
|
||
Interface Interface IPv6 Link Local MLD Number of | ||
State State IPv6 Address Version Global Addresses | ||
---------- --------- --------- ------------------------- ------- ---------------- | ||
vlan 1 up/up enabled fe80::36db:fdff:fe64:5bce 2 0 | ||
|
||
|
28 changes: 28 additions & 0 deletions
28
tests/unit/plugins/modules/ciscosmb/fixtures/ciscosmb_facts-SG500-52-K9-show_lldp_neighbors
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,28 @@ | ||
|
||
System capability legend: | ||
B - Bridge; R - Router; W - Wlan Access Point; T - telephone; | ||
D - DOCSIS Cable Device; H - Host; r - Repeater; | ||
TP - Two Ports MAC Relay; S - S-VLAN; C - C-VLAN; O - Other | ||
|
||
Port Device ID Port ID System Name Capabilities TTL | ||
--------- ----------------- ------------- ----------------- ------------ ----- | ||
gi1/4 b0:ba:6a:c2:41:80 b0:ba:6a:c2:4 b0:ba:6a:c2:41:80 W 106 | ||
1:80 | ||
gi1/5 3a:e6:da:4a:52:1e 3a:e6:da:4a:5 O 3092 | ||
2:1e | ||
gi1/18 00:1a:a9:49:2d:80 Gi0/2 sw-xy-zxxqwe-4.es B 119 | ||
.example.com | ||
gi1/20 dc:4a:3e:56:8d:45 dc:4a:3e:56:8 O 2690 | ||
d:45 | ||
gi1/23 aa:4c:ca:91:06:f2 aa:4c:ca:91:0 O 2816 | ||
6:f2 | ||
gi1/39 aa:1f:72:91:f9:a2 aa:1f:72:91:f O 3495 | ||
9:a2 | ||
gi1/47 ea:5a:ea:8c:ad:1b ea:5a:ea:8c:a O 2692 | ||
d:1b | ||
gi1/49 bc:ea:fa:ba:1a:a0 Ten-GigabitEt sw-ab-cdef-1 B, R, C 101 | ||
hernet1/0/44 | ||
gi1/50 bc:ea:fa:ba:1a:a0 Ten-GigabitEt sw-ab-cdef-1 B, R, C 100 | ||
hernet2/0/44 | ||
|
||
|
3 changes: 3 additions & 0 deletions
3
.../unit/plugins/modules/ciscosmb/fixtures/ciscosmb_facts-SG500-52-K9-show_ports_jumbo-frame
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,3 @@ | ||
|
||
Jumbo frames are disabled | ||
Jumbo frames will be disabled after reset |
Oops, something went wrong.