Skip to content

Commit

Permalink
2.46.0 -> 2.47.0
Browse files Browse the repository at this point in the history
  • Loading branch information
heyglen committed Jun 24, 2020
1 parent 38e7c4a commit 9f020e2
Show file tree
Hide file tree
Showing 9 changed files with 223 additions and 57 deletions.
197 changes: 156 additions & 41 deletions cisco-ios.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -232,90 +232,84 @@ variables:
)
\b
)
number_range_0_42949671: |
number_range_1_31: |
(?xi)
(?:
\b
(?:
(?:4294967[0-1])|
(?:429496[0-6]\d)|
(?:42949[0-5]\d{2})|
(?:4294[0-8]\d{3})|
(?:429[0-3]\d{4})|
(?:42[0-8]\d{5})|
(?:4[0-1]\d{6})|
(?:[0-3]\d{7})|
(?:\d{1,7})
(?:[1-3]\d)|
(?:[1-9])
)
\b
)
number_range_1_1440: |
number_range_0_63: |
(?xi)
(?:
\b
(?:
(?:1440)|
(?:14[0-3]\d)|
(?:1[0-3]\d{2})|
(?:\d{2,3})|
(?:[1-9])
(?:6[1-3])|
(?:[0-5]\d)|
(?:\d)
)
\b
)
number_range_1_4097: |
number_range_1_100: |
(?xi)
(?:
\b
(?:
(?:409[0-7])|
(?:40[0-8]\d)|
(?:[1-3]\d{3})|
(?:\d{2,3})|
(?:100)|
(?:[1-9]\d)|
(?:[1-9])
)
\b
)
number_range_1_1024: |
number_range_0_255: |
(?xi)
(?:
\b
(?:
(?:102[0-4])|
(?:10[0-1]\d)|
(?:\d{2,3})|
(?:[1-9])
(?:25[0-5])|
(?:2[0-4]\d)|
(?:[0-1]?\d{1,2})
)
\b
)
number_range_1_100: |
number_range_1_1024: |
(?xi)
(?:
\b
(?:
(?:100)|
(?:[1-9]\d)|
(?:102[0-4])|
(?:10[0-1]\d)|
(?:\d{2,3})|
(?:[1-9])
)
\b
)
number_range_1_31: |
number_range_1_1440: |
(?xi)
(?:
\b
(?:
(?:[1-3]\d)|
(?:1440)|
(?:14[0-3]\d)|
(?:1[0-3]\d{2})|
(?:\d{2,3})|
(?:[1-9])
)
\b
)
number_range_0_255: |
number_range_1_4097: |
(?xi)
(?:
\b
(?:
(?:25[0-5])|
(?:2[0-4]\d)|
(?:[0-1]?\d{1,2})
(?:409[0-7])|
(?:40[0-8]\d)|
(?:[1-3]\d{3})|
(?:\d{2,3})|
(?:[1-9])
)
\b
)
Expand Down Expand Up @@ -351,6 +345,21 @@ variables:
)
\b
)
number_range_484_8192: |
(?xi)
(?:
\b
(?:
(?:819[0-2])|
(?:81[0-8]\d)|
(?:80\d{2})|
(?:[0-7]\d{3})|
(?:48[0-4])|
(?:4[0-7]\d)|
(?:[0-3]\d{2})
)
\b
)
number_range_64_1280000: |
(?xi)
(?:
Expand All @@ -364,6 +373,24 @@ variables:
)
\b
)
number_range_0_42949671: |
(?xi)
(?:
\b
(?:
(?:4294967[0-1])|
(?:429496[0-6]\d)|
(?:42949[0-5]\d{2})|
(?:4294[0-8]\d{3})|
(?:429[0-3]\d{4})|
(?:42[0-8]\d{5})|
(?:4[0-1]\d{6})|
(?:[0-3]\d{7})|
(?:\d{1,7})
)
\b
)
number_range_0_604800000: |
(?xi)
(?:
Expand Down Expand Up @@ -1590,10 +1617,68 @@ contexts:
- include: snmp_host
- include: snmp_poll
- include: snmp_inform
- include: snmp_contact_location
- include: snmp_contact
- include: snmp_manager
- include: snmp_location
- include: snmp_engine_id
- include: snmp_file_transfer_access_group
- include: snmp_group
- include: snmp_dscp
- include: snmp_ip_precedence
- include: snmp_packetsize
- include: snmp_queue_length

snmp_dscp:
- match: |
(?xi)
\s*
(snmp-server)\s+
(ip)\s+
(dscp)\s+
({{number_range_0_63}})
captures:
1: support.constant
2: support.constant
3: support.constant
4: constant.numeric
snmp_packetsize:
- match: |
(?xi)
\s*
(snmp-server)\s+
(packetsize)\s+
({{number_range_484_8192}})
captures:
1: support.constant
2: support.constant
3: constant.numeric
snmp_queue_length:
- match: |
(?xi)
\s*
(snmp-server)\s+
(queue-length)\s+
(\d+)
captures:
1: support.constant
2: support.constant
3: constant.numeric
snmp_ip_precedence:
- match: |
(?xi)
\s*
(snmp-server)\s+
(ip)\s+
(precedence)\s+
([0-7])
captures:
1: support.constant
2: support.constant
3: support.constant
4: constant.numeric
snmp_group:
- match: |
Expand Down Expand Up @@ -1697,17 +1782,47 @@ contexts:
7: support.constant
8: constant.language
snmp_contact_location:
snmp_manager:
- match: |
(?xi)
\s*
(snmp-server)\s+
(manager)
(?:
\s+
(?:
(session-timeout)\s+(\d+)
)
)?
captures:
1: support.constant
2: support.constant
3: support.constant
4: constant.numeric
snmp_contact:
- match: |
(?xi)
\s*
(snmp-server)\s+
(location|contact)\s+
(contact)\s+
(.*)
captures:
1: support.constant # snmp-server
2: support.constant # location
3: string.unquoted # location string
1: support.constant
2: support.constant
3: string.unquoted
snmp_location:
- match: |
(?xi)
\s*
(snmp-server)\s+
(location)\s+
(.*)
captures:
1: support.constant
2: support.constant
3: string.unquoted
monitor:
- match: |
Expand Down
29 changes: 29 additions & 0 deletions cisco/ios/ios.configure_terminal.sublime-completions
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,35 @@
"trigger": "snmp-server inform\ttimeout",
"contents": "snmp-server inform timeout ${1:15}"
},
{
"trigger": "snmp-server \tdscp",
"contents": "snmp-server ip dscp ${1:0}"
},
{
"trigger": "snmp-server \tprecedence",
"contents": "snmp-server ip precedence ${1:0}"
},
{
"trigger": "snmp-server \tcontact",
"contents": "snmp-server contact ${1:ME}"
},
{
"trigger": "snmp-server \tlocation",
"contents": "snmp-server location ${1:HERE}"
},
{
"trigger": "snmp-server manager\tsession-timeout",
"contents": "snmp-server manager session-timeout ${1:600}"
},
{
"trigger": "snmp-server\tpacketsize",
"contents": "snmp-server packetsize ${1:1500}"
},
{
"trigger": "snmp-server\tqueue-length",
"contents": "snmp-server queue-length ${1:10}"
},
"snmp-server manager",
"end",
"exit",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"trigger": "redistribute\tstatic metric",
"contents": "redistribute static metric ${1:1}"
},

"ignore-connected-check"
]
}
2 changes: 0 additions & 2 deletions lib/format_/network.py
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@


1 change: 1 addition & 0 deletions lib/settings/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class ToggleNetworkInfoOnHoverCommand(sublime_plugin.TextCommand):
def run(self, edit):
settings = sublime.load_settings(SETTINGS_FILE_NAME)
network_info_on_hover = settings.get(NETWORK_INFO_ON_HOVER_SETTING_NAME, True)
print(network_info_on_hover)
settings.set(NETWORK_INFO_ON_HOVER_SETTING_NAME, not network_info_on_hover)
sublime.save_settings(SETTINGS_FILE_NAME)

Expand Down
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@
"2.44.0": "messages/2.44.0.md",
"2.44.1": "messages/2.44.1.md",
"2.45.0": "messages/2.45.0.md",
"2.46.0": "messages/2.46.0.md"
"2.46.0": "messages/2.46.0.md",
"2.47.0": "messages/2.47.0.md"
}
12 changes: 0 additions & 12 deletions messages/2.36.0.md
Original file line number Diff line number Diff line change
@@ -1,12 +0,0 @@
# [2.36.0] - 2020.04.12

## Added

* Cisco IOS [Issue 33](https://github.com/heyglen/network_tech/issues/33)

* Configure Terminal Scope

* ip dhcp snooping

* ip dhcp snooping vlan 123

25 changes: 25 additions & 0 deletions messages/2.47.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# [2.47.0] - 2020.06.24

## Add

### Cisco IOS

* snmp-server ip dscp [#9](https://github.com/heyglen/network_tech/issues/9)

* snmp-server ip precedence [#9](https://github.com/heyglen/network_tech/issues/9)

* snmp-server manager [#9](https://github.com/heyglen/network_tech/issues/9)

* snmp-server manager session-timeout [#9](https://github.com/heyglen/network_tech/issues/9)

* snmp-server packetsize [#9](https://github.com/heyglen/network_tech/issues/9)

* snmp-server queue-length [#9](https://github.com/heyglen/network_tech/issues/9)

## Fixed

### Cisco IOS

* (auto-completion) snmp-server contact [#9](https://github.com/heyglen/network_tech/issues/9)

* (auto-completion) snmp-server location [#9](https://github.com/heyglen/network_tech/issues/9)
Loading

0 comments on commit 9f020e2

Please sign in to comment.