Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New template Alcatel AOS: show port-security #1903

Merged
Merged
23 changes: 23 additions & 0 deletions ntc_templates/templates/alcatel_aos_show_port-security.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Value PORT ((\d+\/?)+)
Value OPERATION_MODE (\S+)
Value ADMIN_STATE (\S+)
Value MAX_MAC_BRIDGED (\d+)
Value TRAP_THRESHOLD (\S+)
Value MAX_MAC_FILTERED (\d+)
Value VIOLATION_TYPE (\S+)
Value VIOLATION_MAC (\S+)
Value PKT_RELAY (\S+)


Start
^\s*Port:\s*${PORT}$$
^\s*Admin-State\s*:\s*${ADMIN_STATE},$$
^\s*Operation\s*Mode\s*:\s*${OPERATION_MODE},$$
^\s*Max\s*MAC\s*bridged\s*:\s*${MAX_MAC_BRIDGED},$$
^\s*Trap\s*Threshold\s*:\s*${TRAP_THRESHOLD},$$
^\s*Max\s*MAC\s*filtered\s*:\s*${MAX_MAC_FILTERED},$$
^\s*Violation\s*:\s*${VIOLATION_TYPE},$$
^\s*Violating\s*MAC\s*:\s*${VIOLATION_MAC}\s*$$
^\s*Pkt-Relay\s*:\s*${PKT_RELAY}$$ -> Record
^\s*
evilmonkey19 marked this conversation as resolved.
Show resolved Hide resolved
jmcgill298 marked this conversation as resolved.
Show resolved Hide resolved
^.*$$ -> Error
jmcgill298 marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#
Template, Hostname, Platform, Command

alcatel_aos_show_port-security.textfsm, .*, alcatel_aos, sh[[ow]] port-[[security]]
alcatel_aos_show_vlan.textfsm, .*, alcatel_aos, show vlan

alcatel_sros_show_router_bgp_routes_vpn-ipv4.textfsm, .*, alcatel_sros, sh[[ow]] router bgp rou[[tes]] vpn-ipv4
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

Legend: Mac Address: * = Duplicate Static
Mac Address: # = Pseudo Static


Port: 1/11
Operation Mode : ENABLED,
Max MAC bridged : 1,
Trap Threshold : DISABLED,
Max MAC filtered : 5,
Violation : RESTRICT,
Violating MAC : NULL

MAC Address VLAN TYPE
-------------------+------+------------
aa:aa:aa:aa:aa:aa 10 STATIC


Legend: Mac Address: * = Duplicate Static
Mac Address: # = Pseudo Static


Port: 1/12
Operation Mode : ENABLED,
Max MAC bridged : 1,
Trap Threshold : DISABLED,
Max MAC filtered : 5,
Violation : RESTRICT,
Violating MAC : NULL

MAC Address VLAN TYPE
-------------------+------+------------
aa:aa:aa:aa:aa:bb 10 STATIC
jmcgill298 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
parsed_sample:
jmcgill298 marked this conversation as resolved.
Show resolved Hide resolved
- admin_state: ""
max_mac_bridged: "1"
max_mac_filtered: "5"
operation_mode: "ENABLED"
pkt_relay: ""
port: "1/12"
trap_threshold: "DISABLED"
violation_mac: "NULL"
violation_type: "RESTRICT"
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Legend: Mac Address: * = address not valid,

Mac Address: & = duplicate static address,


Port: 1/1/1
Admin-State : DISABLED,
Operation Mode : DISABLED,
Max MAC bridged : 1,
Trap Threshold : DISABLED,
Violation : RESTRICT,
Max MAC filtered : 5,
Violating MAC : NULL,
Pkt-Relay : DISABLED

MAC VLAN MAC TYPE OPERATION
-------------------------+--------+-----------------+-----------------
jmcgill298 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
parsed_sample:
- admin_state: "DISABLED"
max_mac_bridged: "1"
max_mac_filtered: "5"
operation_mode: "DISABLED"
pkt_relay: "DISABLED"
port: "1/1/1"
trap_threshold: "DISABLED"
violation_mac: "NULL,"
violation_type: "RESTRICT"
Loading