Skip to content

Commit

Permalink
2.42.0 -> 2.43.0
Browse files Browse the repository at this point in the history
  • Loading branch information
heyglen committed Jun 7, 2020
1 parent 762051f commit e4b41fe
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 2 deletions.
38 changes: 37 additions & 1 deletion cisco-ios-xr.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ variables:
interface_numbers: |
(?xi)
(?:
(?:(?:\d+/RSP\d+/CPU\d+/\d+))|
(?:(?:\d+(?:/\d+)?(?:/RSP\d+)?/CPU\d+/\d+))|
(?:(?:\d+(?:/\d+)*(?:\.\d+)?)?)
)
interface_number_ranged: |
Expand Down Expand Up @@ -7478,6 +7478,7 @@ contexts:
interface_setting_base:
- include: interface_bandwidth
- include: interface_bundle
- include: description
- include: interface_mtu
- include: interface_access_group
Expand Down Expand Up @@ -7783,6 +7784,41 @@ contexts:
1: support.constant
2: constant.numeric
interface_bundle:
- include: interface_bundle_id
- include: interface_bundle_port_priority

interface_bundle_id:
- match: |
(?xi)
^\s*
(bundle)\s+(id)\s+({{number_16_bit_wo_zero}})
(?:
\s+
(mode)\s+
(
(?:active)|
(?:passive)|
(?:on)
)
)?
captures:
1: support.constant
2: support.constant
3: constant.numeric
4: support.constant
5: entity.other.attribute-name
interface_bundle_port_priority:
- match: |
(?xi)
^\s*
(bundle)\s+(port-priority)\s+({{number_16_bit_wo_zero}})
captures:
1: support.constant
2: support.constant
3: constant.numeric
interface_mtu:
- match: |
(?xi)
Expand Down
16 changes: 16 additions & 0 deletions cisco/ios_xr/ios-xr.interface.sublime-completions
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,22 @@
"trigger": "ipv6 access-group\tingress",
"contents": "ipv6 access-group ${1:ACL_NAME} ingress"
},
{
"trigger": "bundle\tactive",
"contents": "bundle id ${1:1} mode active"
},
{
"trigger": "bundle\tpassive",
"contents": "bundle id ${1:1} mode passive"
},
{
"trigger": "bundle\ton",
"contents": "bundle id ${1:1} mode on"
},
{
"trigger": "bundle\tport-priority",
"contents": "bundle port-priority ${1:1}"
},
"cdp",
"shutdown",
]
Expand Down
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@
"2.39.0": "messages/2.39.0.md",
"2.40.0": "messages/2.40.0.md",
"2.41.0": "messages/2.41.0.md",
"2.42.0": "messages/2.42.0.md"
"2.42.0": "messages/2.42.0.md",
"2.43.0": "messages/2.43.0.md"
}
17 changes: 17 additions & 0 deletions messages/2.43.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# [2.43.0] - 2020.06.07

## Added

### IOS XR

* Interface Scope

* bundle id [#34](https://github.com/heyglen/network_tech/issues/34)

* bundle port priority [#34](https://github.com/heyglen/network_tech/issues/34)

## Fixed

### IOS XR

* interface MgmtEth0/0/CPU0/0 highlighting incorrect [#34](https://github.com/heyglen/network_tech/issues/34)
6 changes: 6 additions & 0 deletions tests/syntax_test_cisco_ios_xr.cisco-ios-xr
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,12 @@ interface MgmtEth0/0/CPU0/0
interface GigabitEthernet0/0/0/0
cdp
ipv4 address 1.2.3.4 255.255.255.0
# https://www.cisco.com/c/en/us/td/docs/routers/crs/software/crs_r4-2/interfaces/command/reference/b_interfaces_cr42crs/b_interfaces_cr42crs_chapter_01010.html#wp1014685504
bundle id 1
bundle id 1 mode active
bundle id 1 mode passive
bundle id 1 mode on
bundle port-priority 1
!
interface GigabitEthernet0/0/0/1
cdp
Expand Down

0 comments on commit e4b41fe

Please sign in to comment.