diff --git a/test/unit/mocked_data/SG300-10/show_arp.txt b/test/unit/mocked_data/SG300-10/show_arp.txt new file mode 100644 index 0000000..188616c --- /dev/null +++ b/test/unit/mocked_data/SG300-10/show_arp.txt @@ -0,0 +1,9 @@ + +Total number of entries: 1 + + + VLAN Interface IP address HW address status +--------------------- --------------- ------------------- --------------- +vlan 1 192.168.1.1 9c:eb:e8:aa:bb:cc dynamic + + diff --git a/test/unit/mocked_data/SG300-10/show_hosts.txt b/test/unit/mocked_data/SG300-10/show_hosts.txt new file mode 100644 index 0000000..b832434 --- /dev/null +++ b/test/unit/mocked_data/SG300-10/show_hosts.txt @@ -0,0 +1,33 @@ + +Name/address lookup is enabled +Domain Timeout: 2 seconds +Domain Retry: 1 times +Domain Polling Interval: 8 seconds + + +Default Domain Table + + Domain Source Interface Preference +-------------------------------------------- ------- --------- ---------- +Domain name is not configured + + +Name Server Table + + IP Address Source Interface Preference +-------------------------------------------- ------- --------- ---------- +Name server is not configured + + +Cache Table +Flags: (STA/DYN, OK/NE/??) +STA - Static, DYN - Dynamic +OK - Okay, NE - Negative Cache, ?? - No Response + + Remaining + Host Addresses Type State TTL +------------------------- ------------------------ ---- ------ ---------- +No hostname is mapped to an IP address + + + diff --git a/test/unit/mocked_data/SG300-10/show_interface_description.txt b/test/unit/mocked_data/SG300-10/show_interface_description.txt new file mode 100644 index 0000000..4919a57 --- /dev/null +++ b/test/unit/mocked_data/SG300-10/show_interface_description.txt @@ -0,0 +1,23 @@ +Port Description +------- ----------- +gi1 test1 +gi2 test2 +gi3 +gi4 +gi5 test5 +gi6 +gi7 +gi8 +gi9 +gi10 + +Ch Description +------- ----------- +Po1 +Po2 +Po3 +Po4 +Po5 +Po6 +Po7 +Po8 diff --git a/test/unit/mocked_data/SG300-10/show_interface_status.txt b/test/unit/mocked_data/SG300-10/show_interface_status.txt new file mode 100644 index 0000000..8f9b9a9 --- /dev/null +++ b/test/unit/mocked_data/SG300-10/show_interface_status.txt @@ -0,0 +1,25 @@ + Flow Link Back Mdix +Port Type Duplex Speed Neg ctrl State Pressure Mode +-------- ------------ ------ ----- -------- ---- ----------- -------- ------- +gi1 1G-Copper -- -- -- -- Down -- -- +gi2 1G-Copper -- -- -- -- Down -- -- +gi3 1G-Copper -- -- -- -- Down -- -- +gi4 1G-Copper -- -- -- -- Down -- -- +gi5 1G-Copper -- -- -- -- Down -- -- +gi6 1G-Copper -- -- -- -- Down -- -- +gi7 1G-Copper Full 1000 Enabled Off Up Disabled Off +gi8 1G-Copper Full 1000 Enabled Off Up Disabled On +gi9 1G-Combo-C -- -- -- -- Down -- -- +gi10 1G-Combo-C -- -- -- -- Down -- -- + + Flow Link +Ch Type Duplex Speed Neg control State +-------- ------- ------ ----- -------- ------- ----------- +Po1 -- -- -- -- -- Not Present +Po2 -- -- -- -- -- Not Present +Po3 -- -- -- -- -- Not Present +Po4 -- -- -- -- -- Not Present +Po5 -- -- -- -- -- Not Present +Po6 -- -- -- -- -- Not Present +Po7 -- -- -- -- -- Not Present +Po8 -- -- -- -- -- Not Present diff --git a/test/unit/mocked_data/SG300-10/show_inventory.txt b/test/unit/mocked_data/SG300-10/show_inventory.txt new file mode 100644 index 0000000..d6b109e --- /dev/null +++ b/test/unit/mocked_data/SG300-10/show_inventory.txt @@ -0,0 +1,4 @@ + +NAME: "1" DESCR: "SG300-10 10-Port Gigabit Managed Switch" +PID: SRW2008-K9 VID: V05 SN: AAAABBBBCCC + diff --git a/test/unit/mocked_data/SG300-10/show_ip_interface.txt b/test/unit/mocked_data/SG300-10/show_ip_interface.txt new file mode 100644 index 0000000..a5856f3 --- /dev/null +++ b/test/unit/mocked_data/SG300-10/show_ip_interface.txt @@ -0,0 +1,14 @@ + + + IP Address I/F I/F Status Type Redirect Status + admin/oper +------------------ --------- ---------- ------- -------- ------ +0.0.0.0/32 vlan 1 UP/UP DHCP enable Not + receiv + ed +192.168.1.254/24 vlan 1 UP/UP Default enable Valid + + + Gateway IP Address Activity status Type +----------------------- ----------------------- -------- + diff --git a/test/unit/mocked_data/SG300-10/show_ip_route.txt b/test/unit/mocked_data/SG300-10/show_ip_route.txt new file mode 100644 index 0000000..be21a23 --- /dev/null +++ b/test/unit/mocked_data/SG300-10/show_ip_route.txt @@ -0,0 +1,7 @@ +Maximum Parallel Paths: 1 (1 after reset) +IP Forwarding: disabled +Codes: > - best, C - connected, S - static + + +C 192.168.1.0/24 is directly connected, vlan 1 + diff --git a/test/unit/mocked_data/SG300-10/show_ldp_neighbor_gi7.txt b/test/unit/mocked_data/SG300-10/show_ldp_neighbor_gi7.txt new file mode 100644 index 0000000..a62ba0b --- /dev/null +++ b/test/unit/mocked_data/SG300-10/show_ldp_neighbor_gi7.txt @@ -0,0 +1,27 @@ + +Device ID: 00:a5:bf:ff:ee:dd +Port ID: gi8 +Capabilities: Bridge, Router +System Name: switchcffeedd +System description: +Port description: +Management Address: 192.168.1.253 +Management Address: 254.128.0.0.0.0 +Time To Live: 118 + + +802.3 EEE: + +17 +17 +17 +17 + + +802.1 PVID: 1 +802.1 PPVID: +802.1 VLAN: +802.1 Protocol: + + + diff --git a/test/unit/mocked_data/SG300-10/show_lldp_local_gi7.txt b/test/unit/mocked_data/SG300-10/show_lldp_local_gi7.txt new file mode 100644 index 0000000..99122d0 --- /dev/null +++ b/test/unit/mocked_data/SG300-10/show_lldp_local_gi7.txt @@ -0,0 +1,19 @@ + +Device ID: 50:f7:22:aa:bb:cc +Port ID: gi7 +Capabilities: Bridge +System Name: switchaabbcc + +802.3 EEE: + +17 +17 +17 +17 + + +802.1 PVID: 1 +802.1 PPVID: +802.1 VLAN: +802.1 Protocol: + diff --git a/test/unit/mocked_data/SG300-10/show_running-config.txt b/test/unit/mocked_data/SG300-10/show_running-config.txt new file mode 100644 index 0000000..962fd27 --- /dev/null +++ b/test/unit/mocked_data/SG300-10/show_running-config.txt @@ -0,0 +1,40 @@ +config-file-header +switchf5bcdb +v1.4.11.5 / R800_NIK_1_4_220_026 +CLI v1.0 +set system mode switch + +file SSD indicator encrypted +@ +ssd-control-start +ssd config +ssd file passphrase control unrestricted +no ssd file integrity control +ssd-control-end cb0a3fdb1f3a1af4e4430033719968c0 +! +voice vlan oui-table add 0001e3 Siemens_AG_phone________ +voice vlan oui-table add 00036b Cisco_phone_____________ +voice vlan oui-table add 00096e Avaya___________________ +voice vlan oui-table add 000fe2 H3C_Aolynk______________ +voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone +voice vlan oui-table add 00d01e Pingtel_phone___________ +voice vlan oui-table add 00e075 Polycom/Veritel_phone___ +voice vlan oui-table add 00e0bb 3Com_phone______________ +hostname switchf5bcdb +username root password encrypted dddd5d7b474d2c78ebbb833789c4bfd721edf4bf privilege 15 +ip ssh server +ip ssh password-auth +sntp unicast client enable +sntp unicast client poll +sntp server 1.2.3.4 +! +interface gigabitethernet1 + description test1 +! +interface gigabitethernet2 + description test2 +! +interface gigabitethernet5 + description test5 +! +exit diff --git a/test/unit/mocked_data/SG300-10/show_sntp_status.txt b/test/unit/mocked_data/SG300-10/show_sntp_status.txt new file mode 100644 index 0000000..39e82cd --- /dev/null +++ b/test/unit/mocked_data/SG300-10/show_sntp_status.txt @@ -0,0 +1,22 @@ + +Clock is unsynchronized + +Unicast servers: + +Server : 1.2.3.4 + Source : Static + Stratum : 255 + Status : unknown + Last Response : 00:00:00.0 Jan 1 1900 + Offset : 0.0000000 mSec + Delay : 0 mSec + + + +Anycast server: + + + +Broadcast: + + diff --git a/test/unit/mocked_data/SG300-10/show_startup-config.txt b/test/unit/mocked_data/SG300-10/show_startup-config.txt new file mode 100644 index 0000000..c69a979 --- /dev/null +++ b/test/unit/mocked_data/SG300-10/show_startup-config.txt @@ -0,0 +1,27 @@ +config-file-header +switchaabbcc +v1.4.11.5 / R800_NIK_1_4_220_026 +CLI v1.0 +set system mode switch + +file SSD indicator encrypted +@ +ssd-control-start +ssd config +ssd file passphrase control unrestricted +no ssd file integrity control +ssd-control-end cb0a3fdb1f3a1af4e4430033719968c0 +! +voice vlan oui-table add 0001e3 Siemens_AG_phone________ +voice vlan oui-table add 00036b Cisco_phone_____________ +voice vlan oui-table add 00096e Avaya___________________ +voice vlan oui-table add 000fe2 H3C_Aolynk______________ +voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone +voice vlan oui-table add 00d01e Pingtel_phone___________ +voice vlan oui-table add 00e075 Polycom/Veritel_phone___ +voice vlan oui-table add 00e0bb 3Com_phone______________ +hostname switchf5bcdb +username root password encrypted dddd5d7b474d2c78ebbb833789c4bfd721edf4bf privilege 15 +ip ssh server +ip ssh password-auth +! diff --git a/test/unit/mocked_data/SG300-10/show_system.txt b/test/unit/mocked_data/SG300-10/show_system.txt new file mode 100644 index 0000000..410f06d --- /dev/null +++ b/test/unit/mocked_data/SG300-10/show_system.txt @@ -0,0 +1,10 @@ +System Description: SG300-10 10-Port Gigabit Managed Switch +System Up Time (days,hour:min:sec): 07,00:53:10 +System Contact: +System Name: switchaabbcc +System Location: +System MAC Address: 50:f7:22:aa:bb:cc +System Object ID: 1.3.6.1.4.1.9.6.1.83.10.1 + +Fans Status: N/A + diff --git a/test/unit/mocked_data/SG300-10/show_version.txt b/test/unit/mocked_data/SG300-10/show_version.txt new file mode 100644 index 0000000..34c1bcf --- /dev/null +++ b/test/unit/mocked_data/SG300-10/show_version.txt @@ -0,0 +1,3 @@ +SW version 1.4.11.5 ( date 08-Apr-2020 time 13:49:34 ) +Boot version 1.3.5.06 ( date 21-Jul-2013 time 15:12:10 ) +HW version V05