-
Notifications
You must be signed in to change notification settings - Fork 743
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
Feb 2, 2022
1 parent
5ef904e
commit c9f33db
Showing
5 changed files
with
39 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,15 @@ | ||
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 | ||
^\s+IP\sAlias\sSetup\s+Public\sLAN\s*$$ | ||
^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*$$ | ||
^${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
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,5 @@ | ||
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 555.666.77.888 255.255.255.252 0 0 | ||
LAN VOIX 0 N/A N/A 0 N/A N/A 0 0 | ||
Command Successful. |
16 changes: 16 additions & 0 deletions
16
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,16 @@ | ||
--- | ||
parsed_sample: | ||
- name: "Default" | ||
ipalias_active: "0" | ||
ipalias_ip: "N/A" | ||
ipalias_netmask: "N/A" | ||
publan_active: "1" | ||
publan_ip: "555.666.77.888" | ||
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" |