-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #269 from networktocode/ubiquiti_edgeswitch
Add new OS and commands: Ubiquiti edgeswitch: show vlan and show arp support
- Loading branch information
Showing
8 changed files
with
89 additions
and
2 deletions.
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
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 @@ | ||
Value Required ADDRESS (\d+\.\d+\.\d+\.\d+) | ||
Value MAC (\S+) | ||
Value INTERFACE (\S+) | ||
Value TYPE (\S+) | ||
Value AGE (.*) | ||
|
||
Start | ||
^${ADDRESS}\s+${MAC}\s+${INTERFACE}\s+${TYPE}\s+${AGE}.*$$ -> Record | ||
^.+\. | ||
^\s+IP\s+Address\s+MAC\s+Address\s+Interface\s+Type\s+Age | ||
^-+\s+-+\s+-+\s+-+\s+-+\s*$$ | ||
^\s*$$ | ||
^. -> Error |
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,10 @@ | ||
Value Required VLAN_ID (\d+) | ||
Value NAME (.*?) | ||
Value TYPE (\S+) | ||
|
||
Start | ||
^${VLAN_ID}\s+${NAME}\s+${TYPE}\s*$$ -> Record | ||
^VLAN\s+ID\s+VLAN\s+Name\s+VLAN\s+Type\s*$$ | ||
^-+\s+-+\s+-+\s*$$ | ||
^\s*$$ | ||
^. -> Error |
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
22 changes: 22 additions & 0 deletions
22
tests/ubiquiti_edgeswitch/show_arp/ubiquiti_edgeswitch_show_arp.parsed
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,22 @@ | ||
--- | ||
parsed_sample: | ||
- address: "172.16.216.1" | ||
age: "0h 0m 10s" | ||
interface: "4/1" | ||
mac: "80:2A:A8:F1:D2:46" | ||
type: "Gateway" | ||
- address: "172.16.216.2" | ||
age: "0h 2m 16s" | ||
interface: "4/1" | ||
mac: "E2:91:F5:CC:E8:19" | ||
type: "Dynamic" | ||
- address: "172.16.216.4" | ||
age: "n/a" | ||
interface: "4/1" | ||
mac: "78:8A:20:44:02:7F" | ||
type: "Local" | ||
- address: "172.16.216.33" | ||
age: "0h 0m 5s" | ||
interface: "4/1" | ||
mac: "00:00:00:00:00:00" | ||
type: "Dynamic" |
15 changes: 15 additions & 0 deletions
15
tests/ubiquiti_edgeswitch/show_arp/ubiquiti_edgeswitch_show_arp.raw
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,15 @@ | ||
|
||
Age Time (seconds)............................. 300 | ||
Response Time (seconds)........................ 1 | ||
Retries........................................ 4 | ||
Cache Size..................................... 493 | ||
Dynamic Renew Mode ............................ Disable | ||
Total Entry Count Current / Peak .............. 4 / 4 | ||
Static Entry Count Configured / Active / Max .. 0 / 0 / 128 | ||
|
||
IP Address MAC Address Interface Type Age | ||
--------------- ----------------- -------------- -------- ----------- | ||
172.16.216.1 80:2A:A8:F1:D2:46 4/1 Gateway 0h 0m 10s | ||
172.16.216.2 E2:91:F5:CC:E8:19 4/1 Dynamic 0h 2m 16s | ||
172.16.216.4 78:8A:20:44:02:7F 4/1 Local n/a | ||
172.16.216.33 00:00:00:00:00:00 4/1 Dynamic 0h 0m 5s |
17 changes: 17 additions & 0 deletions
17
tests/ubiquiti_edgeswitch/show_vlans/ubiquiti_edgeswitch_show_vlan.parsed
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,17 @@ | ||
--- | ||
parsed_sample: | ||
- name: "default" | ||
type: "Default" | ||
vlan_id: "1" | ||
- name: "ip tv" | ||
type: "Static" | ||
vlan_id: "101" | ||
- name: "internet" | ||
type: "Static" | ||
vlan_id: "102" | ||
- name: "hjemmenett" | ||
type: "Static" | ||
vlan_id: "216" | ||
- name: "server" | ||
type: "Static" | ||
vlan_id: "217" |
7 changes: 7 additions & 0 deletions
7
tests/ubiquiti_edgeswitch/show_vlans/ubiquiti_edgeswitch_show_vlan.raw
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 @@ | ||
VLAN ID VLAN Name VLAN Type | ||
------- -------------------------------- ------------------- | ||
1 default Default | ||
101 ip tv Static | ||
102 internet Static | ||
216 hjemmenett Static | ||
217 server Static |