Skip to content

Commit

Permalink
Merge branch 'cisco_s300_show_interfaces_switchport' into 'master'
Browse files Browse the repository at this point in the history
Cisco s300 show interfaces switchport

See merge request bsh-developers/ntc-templates!32
  • Loading branch information
Скляренко Павел committed Nov 6, 2023
2 parents e279f83 + 82cf938 commit 78fe487
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Value PORT (\S+)
Value PORT_MODE (\S+)
Value INTERFACE (\S+)
Value INTERFACE_MODE (\S+)
Value GVRP_STATUS (\S+)
Value INGRESS_FILTERING_STATUS (\S+)
Value ACCEPTABLE_FRAME_TYPE (\S+)
Value NATIVE_VLAN (\S+)
Value List VLAN (\d+)
Value List NAME (.*?)
Value List EGRESS_RULE (Untagged|Tagged)
Value List PORT_MEMBERSHIP_TYPE (\S+)
Value List INTERFACE_MEMBERSHIP_TYPE (\S+)
Value List FORBIDDEN_VLAN (\d+)
Value List FORBIDDEN_VLAN_NAME (.*)
Value List MAC_BASED_VLAN_GROUP_ID (\d+)
Value List MAC_BASED_VLAN_ID (\d+)

Start
^\s*Port\s*:\s*${PORT}\s*$$
^\s*Port\s+Mode\s*:\s*${PORT_MODE}\s*$$
^\s*Port\s*:\s*${INTERFACE}\s*$$
^\s*Port\s+Mode\s*:\s*${INTERFACE_MODE}\s*$$
^\s*Gvrp\s+Status\s*:\s*${GVRP_STATUS}\s*$$
^\s*Ingress\s+Filtering\s*:\s*${INGRESS_FILTERING_STATUS}\s*$$
^\s*Acceptable\s+Frame\s+Type\s*:\s*${ACCEPTABLE_FRAME_TYPE}\s*$$
Expand All @@ -27,7 +27,7 @@ Start
PartOfVlan
^\s*Vlan\s+Name\s+Egress\s+rule\s+Port\s+Membership\s+Type\s*$$
^(\s*-*)*\s*$$
^\s*${VLAN}\s+${NAME}\s+${EGRESS_RULE}\s+${PORT_MEMBERSHIP_TYPE}\s*$$
^\s*${VLAN}\s+${NAME}\s+${EGRESS_RULE}\s+${INTERFACE_MEMBERSHIP_TYPE}\s*$$
^\s*Forbidden\s+VLANS:\s*$$ -> ForbiddenVlans
^\s*$$
^. -> Error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ parsed_sample:
- "203"
- "VOIP-1"
native_vlan: "203"
port: "fa1"
port_membership_type:
interface: "fa1"
interface_membership_type:
- "Static"
- "Static"
port_mode: "Trunk"
interface_mode: "Trunk"
vlan:
- "203"
- "222"

0 comments on commit 78fe487

Please sign in to comment.