Skip to content

Commit

Permalink
2.41.0 -> 2.42.0
Browse files Browse the repository at this point in the history
  • Loading branch information
heyglen committed May 31, 2020
1 parent 6cb5633 commit fe4fc0d
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 2 deletions.
33 changes: 32 additions & 1 deletion cisco-ios-xr.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,7 @@ variables:
(?:port-channel)|
(?:po)|
(?:pos)|
(?:ptp)|
(?:serial)|
(?:se)|
(?:TenGigabitEthernet)|
Expand All @@ -1268,7 +1269,10 @@ variables:
)
interface_numbers: |
(?xi)
(?:\d+(?:/\d+)*(?:\.\d+)?)?
(?:
(?:(?:\d+/RSP\d+/CPU\d+/\d+))|
(?:(?:\d+(?:/\d+)*(?:\.\d+)?)?)
)
interface_number_ranged: |
(?xi)
(?:\d+(?:/\d+)*(?:\.\d+)?)(?:\s*-\s*\d+)?
Expand Down Expand Up @@ -7446,10 +7450,37 @@ contexts:
- match: '{{ctx_pop_configure_terminal}}'
pop: true
interface_access_group:
- match: >
(?xi)
^\s*(ipv[46])\s+(access-group)
(?:\s+(common\s+(\S+)))?
\s+(\S+)\s+
(
(?:ingress)|
(?:egress)
)
(\s+hardware-count)?
(\s+interface-statistics)?
(?:\s+(compress\s+level)\s+([013]))?
captures:
1: support.constant
2: support.constant
3: support.constant
4: string.unquoted
5: string.unquoted
6: support.constant
7: support.constant
8: support.constant
9: support.constant
10: constant.numeric
interface_setting_base:
- include: interface_bandwidth
- include: description
- include: interface_mtu
- include: interface_access_group
- match: >
(?xi)
^\s*
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 @@ -117,6 +117,22 @@
"trigger": "address-family\tipv6 unicast",
"contents": "address-family ipv6 unicast\n\t$0\n"
},
{
"trigger": "ipv4 access-group\tegress",
"contents": "ipv4 access-group ${1:ACL_NAME} egress"
},
{
"trigger": "ipv4 access-group\tingress",
"contents": "ipv4 access-group ${1:ACL_NAME} ingress"
},
{
"trigger": "ipv6 access-group\tegress",
"contents": "ipv6 access-group ${1:ACL_NAME} egress"
},
{
"trigger": "ipv6 access-group\tingress",
"contents": "ipv6 access-group ${1:ACL_NAME} ingress"
},
"cdp",
"shutdown",
]
Expand Down
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@
"2.38.2": "messages/2.38.2.md",
"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.41.0": "messages/2.41.0.md",
"2.42.0": "messages/2.42.0.md"
}
13 changes: 13 additions & 0 deletions messages/2.42.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# [2.42.0] - 2020.05.31

## Added

* interface scope

* ip access-group [#34](https://github.com/heyglen/network_tech/issues/34)

## Fixed

### Cisco IOS XR

* Missing interface names [#34](https://github.com/heyglen/network_tech/issues/34)
29 changes: 29 additions & 0 deletions tests/syntax_test_cisco_ios_xr.cisco-ios-xr
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,25 @@ interface GigabitEthernet0/0/0/0
mpls ldp sync level 2
!

interface MgmtEth0/RSP0/CPU0/0
shutdown
!
interface MgmtEth0/RSP0/CPU0/1
shutdown
!
interface MgmtEth0/RSP1/CPU0/0
shutdown
!
interface MgmtEth0/RSP1/CPU0/1
shutdown
!
interface PTP0/RSP0/CPU0/0
shutdown
!
interface PTP0/RSP1/CPU0/0
shutdown
!

interface Loopback0
ipv4 address 1.2.3.4/28
ipv4 address 1.2.3.4 255.255.255.255
Expand All @@ -185,6 +204,16 @@ interface Loopback0
ipv6 address 1::1/64
ipv6 address 1::1/64 route-tag 1
ipv6 address 1::1/64 eui-64 route-tag 1
ipv4 access-group ACL_NAME ingress
ipv4 access-group ACL_NAME egress
ipv4 access-group common COMMON_NAME ACL_NAME ingress
ipv4 access-group common COMMON_NAME ACL_NAME egress
ipv4 access-group common COMMON_NAME ACL_NAME egress hardware-count
ipv4 access-group common COMMON_NAME ACL_NAME egress interface-statistics
ipv4 access-group common COMMON_NAME ACL_NAME egress compress level 0
ipv4 access-group common COMMON_NAME ACL_NAME egress compress level 1
ipv4 access-group common COMMON_NAME ACL_NAME egress compress level 3
ipv4 access-group common COMMON_NAME ACL_NAME egress hardware-count interface-statistics compress level 3
!
interface Loopback1
vrf VRF_NAME
Expand Down

0 comments on commit fe4fc0d

Please sign in to comment.