Skip to content

Commit

Permalink
replace LINK_LAYER with MAC_ADDRESS in huawei_vrp_display_ipv6_neighb…
Browse files Browse the repository at this point in the history
…ors to normalize (networktocode#1465)
  • Loading branch information
mjbear committed Jan 7, 2024
1 parent 2b9311b commit 34c336e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Value IPV6_ADDRESS (\S+)
Value LINK_LAYER (([\d\w]{4}-){2}[\d\w]{4})
Value MAC_ADDRESS (([\d\w]{4}-){2}[\d\w]{4})
Value STATE (INCMP|REACH|STALE|DELAY|PROBE)
Value INTERFACE (\S+)
Value AGE (\S+)
Expand All @@ -15,7 +15,7 @@ Start
^\s*-+\s*$$
^\s*IPv6\sAddress\s*:\s*\S+\s*$$ -> Continue.Record
^\s*IPv6\sAddress\s*:\s*${IPV6_ADDRESS}\s*$$
^\s*Link-layer\s*:\s*${LINK_LAYER}\s+State\s*:\s*${STATE}\s*$$
^\s*Link-layer\s*:\s*${MAC_ADDRESS}\s+State\s*:\s*${STATE}\s*$$
^\s*Interface\s*:\s*${INTERFACE}\s+Age\s*:\s*${AGE}\s*$$
^\s*VLAN\s*:\s*${VLAN_ID}\s+CEVLAN\s*:\s*${CE_VLAN}\s*$$
^\s*(VPN\sname\s*:\s*${VPN_NAME}\s+)?Is\sRouter\s*:\s*${IS_ROUTER}\s*$$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ parsed_sample:
interface: "GE0/0/0"
ipv6_address: "2::1"
is_router: "TRUE"
link_layer: "707b-e8e9-d329"
mac_address: "707b-e8e9-d329"
nickname: ""
secure_flag: "UN-SECURE"
state: "STALE"
Expand All @@ -16,7 +16,7 @@ parsed_sample:
interface: "GE0/0/1"
ipv6_address: "FE80::727B:E8FF:FEE9:D329"
is_router: "TRUE"
link_layer: "707b-e8e9-d329"
mac_address: "707b-e8e9-d329"
nickname: ""
secure_flag: "UN-SECURE"
state: "STALE"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ parsed_sample:
interface: "10GE4/17/6"
ipv6_address: "FC00:1::2"
is_router: "TRUE"
link_layer: "0025-9e01-020a"
mac_address: "0025-9e01-020a"
nickname: "-"
secure_flag: "UNSECURE"
state: "STALE"
Expand All @@ -16,7 +16,7 @@ parsed_sample:
interface: "10GE4/17/6"
ipv6_address: "FE80::225:9EFF:FE01:20A"
is_router: "TRUE"
link_layer: "0025-9e01-020a"
mac_address: "0025-9e01-020a"
nickname: "-"
secure_flag: "UNSECURE"
state: "STALE"
Expand All @@ -27,7 +27,7 @@ parsed_sample:
interface: "10GE4/17/3"
ipv6_address: "FC00:2::1"
is_router: "TRUE"
link_layer: "0023-0045-0067"
mac_address: "0023-0045-0067"
nickname: "-"
secure_flag: "SECURE"
state: "INCMP"
Expand Down

0 comments on commit 34c336e

Please sign in to comment.