-
Notifications
You must be signed in to change notification settings - Fork 739
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
Edouard Lavaud
committed
May 23, 2022
1 parent
d61f94e
commit 8426cc9
Showing
4 changed files
with
47 additions
and
0 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,16 @@ | ||
Value NAME (.+?) | ||
Value IPALIAS_ACTIVE (0|1) | ||
Value IPALIAS_IP (\S+) | ||
Value IPALIAS_NETMASK (\S+) | ||
Value PUBLAN_ACTIVE (0|1) | ||
Value PUBLAN_IP (\S+) | ||
Value PUBLAN_NETMASK (\S+) | ||
|
||
Start | ||
^Group\sName\s+Active\s+IPv4\sArrdess\s+Subnet\smask\s+Active\s+IPv4\sArrdess\s+Subnet\smask\s+Offer\sPublic\sIP\sby\sDHCP\s+Enable\sARP\sProxy\s*$$ -> IPALIASTable | ||
|
||
IPALIASTable | ||
^${NAME}\s+${IPALIAS_ACTIVE}\s+${IPALIAS_IP}\s+${IPALIAS_NETMASK}\s+${PUBLAN_ACTIVE}\s+${PUBLAN_IP}\s+${PUBLAN_NETMASK}\s+(0|1)\s+(0|1)\s*$$ -> Record | ||
^Command\sSuccessful.\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,7 @@ | ||
handlerName=ethwanlan method=GET i=2 | ||
This device do not support Ethernet LAN4 port change to WAN port. IP Alias Setup Public LAN | ||
Group Name Active IPv4 Arrdess Subnet mask Active IPv4 Arrdess Subnet mask Offer Public IP by DHCP Enable ARP Proxy | ||
Default 0 N/A N/A 1 100.200.77.111 255.255.255.252 0 0 | ||
LAN VOIX 0 N/A N/A 0 N/A N/A 0 0 | ||
2e65ed5d-d 1 192.168.180.1 255.255.255.0 0 N/A N/A 0 0 | ||
Command Successful. |
23 changes: 23 additions & 0 deletions
23
tests/zyxel_os/cfg_ipalias_get/zyxel_os_cfg_ipalias_get.yml
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,23 @@ | ||
--- | ||
parsed_sample: | ||
- name: "Default" | ||
ipalias_active: "0" | ||
ipalias_ip: "N/A" | ||
ipalias_netmask: "N/A" | ||
publan_active: "1" | ||
publan_ip: "100.200.77.111" | ||
publan_netmask: "255.255.255.252" | ||
- name: "LAN VOIX" | ||
ipalias_active: "0" | ||
ipalias_ip: "N/A" | ||
ipalias_netmask: "N/A" | ||
publan_active: "0" | ||
publan_ip: "N/A" | ||
publan_netmask: "N/A" | ||
- name: "2e65ed5d-d" | ||
ipalias_active: "1" | ||
ipalias_ip: "192.168.180.1" | ||
ipalias_netmask: "255.255.255.0" | ||
publan_active: "0" | ||
publan_ip: "N/A" | ||
publan_netmask: "N/A" |