forked from networktocode/ntc-templates
-
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.
Mikrotik routeros ip address print FLAGS value fix (networktocode#1574)
* Template + test * Fix template for Mikrotik's command '/ip address print'
- Loading branch information
1 parent
51fd255
commit 379593f
Showing
5 changed files
with
75 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
ntc_templates/templates/mikrotik_routeros_ip_address_print.textfsm
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
8 changes: 8 additions & 0 deletions
8
tests/mikrotik_routeros/ip_address_print/mikrotik_routeros_ip_address_print_1.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,8 @@ | ||
Flags: X - disabled, I - invalid, D - dynamic | ||
# ADDRESS NETWORK INTERFACE | ||
0 1.2.3.6/30 1.2.3.4 ether1 | ||
1 ;;; test ip1 | ||
192.167.1.5/27 192.167.1.0 eth2_vlan1 | ||
2 D 192.168.1.53/24 192.168.1.0 lte1 | ||
3 X ;;; test ip2 | ||
192.167.1.99/27 192.167.1.0 eth2_vlan2 |
30 changes: 30 additions & 0 deletions
30
tests/mikrotik_routeros/ip_address_print/mikrotik_routeros_ip_address_print_1.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,30 @@ | ||
--- | ||
parsed_sample: | ||
- num: "0" | ||
flags: "" | ||
comment: "" | ||
ip: "1.2.3.6" | ||
subnet: "30" | ||
network: "1.2.3.4" | ||
interface: "ether1" | ||
- num: "1" | ||
flags: "" | ||
comment: "test ip1" | ||
ip: "192.167.1.5" | ||
subnet: "27" | ||
network: "192.167.1.0" | ||
interface: "eth2_vlan1" | ||
- num: "2" | ||
flags: "D" | ||
comment: "" | ||
ip: "192.168.1.53" | ||
subnet: "24" | ||
network: "192.168.1.0" | ||
interface: "lte1" | ||
- num: "3" | ||
flags: "X" | ||
comment: "test ip2" | ||
ip: "192.167.1.99" | ||
subnet: "27" | ||
network: "192.167.1.0" | ||
interface: "eth2_vlan2" |
6 changes: 6 additions & 0 deletions
6
tests/mikrotik_routeros/ip_address_print/mikrotik_routeros_ip_address_print_2.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,6 @@ | ||
Flags: X - disabled, I - invalid, D - dynamic | ||
# ADDRESS NETWORK INTERFACE | ||
0 10.156.1.229/30 10.156.1.228 ether4_CiscoPhone3 | ||
1 10.152.1.229/30 10.152.1.228 ether5_KFCcisco | ||
2 10.160.1.229/30 10.160.1.228 ether2_BOX | ||
3 XI 10.100.3.200/27 10.100.3.192 bridge70 |
30 changes: 30 additions & 0 deletions
30
tests/mikrotik_routeros/ip_address_print/mikrotik_routeros_ip_address_print_2.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,30 @@ | ||
--- | ||
parsed_sample: | ||
- comment: "" | ||
flags: "" | ||
interface: "ether4_CiscoPhone3" | ||
ip: "10.156.1.229" | ||
network: "10.156.1.228" | ||
num: "0" | ||
subnet: "30" | ||
- comment: "" | ||
flags: "" | ||
interface: "ether5_KFCcisco" | ||
ip: "10.152.1.229" | ||
network: "10.152.1.228" | ||
num: "1" | ||
subnet: "30" | ||
- comment: "" | ||
flags: "" | ||
interface: "ether2_BOX" | ||
ip: "10.160.1.229" | ||
network: "10.160.1.228" | ||
num: "2" | ||
subnet: "30" | ||
- comment: "" | ||
flags: "XI" | ||
interface: "bridge70" | ||
ip: "10.100.3.200" | ||
network: "10.100.3.192" | ||
num: "3" | ||
subnet: "27" |