Skip to content

Commit

Permalink
✨ Cisco IOS-XR interface → arp learning: highlight invalid values
Browse files Browse the repository at this point in the history
✨ Cisco IOS-XR l2vpn → bridge group → bridge domain → interface → evi: Autocomplete
  • Loading branch information
heyglen committed May 30, 2024
1 parent 7399a0e commit 0cf4dad
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
9 changes: 6 additions & 3 deletions cisco-ios-xr.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -8540,14 +8540,17 @@ contexts:
- match: |
(?xi)
^\s*
(arp\s+learning)\s+(
(?:local)|
(?:disable)
(arp\s+learning)\s+(?:
(local)|
(disable)|
(\S+)
)
\s*$
captures:
1: support.constant
2: entity.other.attribute-name
3: entity.other.attribute-name
4: invalid.illegal
interface_host_routing:
- match: |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"scope": "text.network.cisco.ios_xr text.network.cisco.l2_vpn.bridge_group.bridge_domain.interface",
"completions": [
{
"trigger": "evi\t1-65534",
"contents": "evi ${1:65534}"
},
]
}
7 changes: 7 additions & 0 deletions messages/head.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# [{{version}}] - {{date}}

✨ Cisco IOS-XR

* interface → arp learning: highlight invalid values

* l2vpn → bridge group → bridge domain → interface → evi: Autocomplete


8 changes: 2 additions & 6 deletions tests/syntax_test_cisco_ios_xr.cisco-ios-xr
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,12 @@ interface BVI34
ipv4 address 10.0.0.5 255.0.0.0
arp learning local
arp learning disable
arp learning invalid
local-proxy-arp
mac-address 0123.4567.89ab
mac-address invalid
!
!
evpn
interface Bundle-Ether1
ethernet-segment


evpn
interface Bundle-Ether1
Expand All @@ -247,10 +244,8 @@ evpn
load-balancing-mode per-service
load-balancing-mode invalid

# Illegal values
bgp route-target 0000.0000.0000
bgp route-target invalid
# Valid value
bgp route-target 4000.0000.0001
!
evi 65535
Expand All @@ -265,6 +260,7 @@ evpn
route-target export invalid
!
!

interface bundle-ether1.2 l2transport
no shutdown
encapsulation dot1q 1
Expand Down

0 comments on commit 0cf4dad

Please sign in to comment.