Skip to content

Commit

Permalink
2.50.0 -> 2.51.0
Browse files Browse the repository at this point in the history
  • Loading branch information
heyglen committed May 6, 2021
1 parent d3c6aa7 commit 51b6238
Show file tree
Hide file tree
Showing 7 changed files with 91 additions and 92 deletions.
1 change: 1 addition & 0 deletions cisco/asa/asa.object_group.sublime-completions
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{
"scope": "text.network.cisco.asa.object_group",
"completions": [
Expand Down
5 changes: 3 additions & 2 deletions messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@
"2.46.0": "messages/2.46.0.md",
"2.47.0": "messages/2.47.0.md",
"2.48.0": "messages/2.48.0.md",
"2.50.0": "messages/2.50.0.md"
}
"2.50.0": "messages/2.50.0.md",
"2.51.0": "messages/2.51.0.md"
}
31 changes: 31 additions & 0 deletions messages/2.51.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# [2.51.0] - 2021.05.06

* Cisco ASA

* Missing port names

* tacacs

* netbios-dgm

* bootps

* bootpc

* citrix-ica

* citrix-netbios-ns

* tftp

* Cisco IOS

* aaa authorization [#19](https://github.com/heyglen/network_tech/issues/19)

* aaa accounting [#19](https://github.com/heyglen/network_tech/issues/19)

* HundredGigE interface name [#38](https://github.com/heyglen/network_tech/issues/38)

* FourtyGigE interface name [#38](https://github.com/heyglen/network_tech/issues/38)

* Autocomplete interface Gig & TenGig improvements
29 changes: 0 additions & 29 deletions messages/head.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,2 @@
# [{{version}}] - {{date}}

* Cisco ASA

* Missing port names

* tacacs

* netbios-dgm

* bootps

* bootpc

* citrix-ica

* citrix-netbios-ns

* tftp

* Cisco IOS

* aaa authorization [#19](https://github.com/heyglen/network_tech/issues/19)

* aaa accounting [#19](https://github.com/heyglen/network_tech/issues/19)

* HundredGigE interface name [#38](https://github.com/heyglen/network_tech/issues/38)

* FourtyGigE interface name [#38](https://github.com/heyglen/network_tech/issues/38)

* Autocomplete interface Gig & TenGig improvements
85 changes: 43 additions & 42 deletions tests/syntax_test_cisco_asa.cisco-asa
Original file line number Diff line number Diff line change
Expand Up @@ -166,51 +166,52 @@ object service tcp_1234
service tcp destination range 1 2
service tcp destination eq 1234
service udp source eq 1234
exit

write

access-list cached ACL log flows: total 6443, denied 0 (deny-flow-max 4096)
alert-interval 300
access-list acl-name remark this is a remark
access-list acl-name line 0 remark this is a remark
access-list acl-name; 42 elements; name hash: 0xbe299002
access-list acl-name extended permit icmp any4 any4 object-group icmp_group
access-list acl-name line 42 extended permit icmp any4 any4 object-group icmp_group
access-list acl-name line 42 extended permit tcp host 2.2.2.2 host 3.3.3.3 eq www
access-list acl-name line 42 extended permit tcp host 2.2.2.2 host 3.3.3.3 neq www
access-list acl-name line 42 extended permit tcp host 2.2.2.2 host 3.3.3.3 ge www
access-list acl-name line 42 extended permit tcp host 2.2.2.2 host 3.3.3.3 gt www
access-list acl-name line 42 extended permit tcp host 2.2.2.2 host 3.3.3.3 le www
access-list acl-name line 42 extended permit tcp host 2.2.2.2 host 3.3.3.3 lt www
access-list acl-name line 42 extended permit tcp host 2.2.2.2 host 3.3.3.3 eq https
access-list acl-name line 42 extended permit tcp host 2.2.2.2 host 3.3.3.3 eq sunrpc
access-list acl-name line 42 extended permit tcp host 2.2.2.2 host 3.3.3.3 object dst_ports
access-list acl-name line 42 extended permit tcp host 2.2.2.2 object src_ports host 3.3.3.3
access-list acl-name line 42 extended permit tcp host 2.2.2.2 object-group src_ports host 3.3.3.3 object-group dst_ports
access-list acl-name line 42 extended permit tcp host 2.2.2.2 object-group network-dst eq 2059 inactive (inactive)
access-list acl-name line 42 extended permit tcp host 2.2.2.2 object-group network-dst eq 2059 inactive (inactive)
access-list acl-name line 42 extended permit tcp 2.2.2.2 255.255.255.0 object-group network-dst eq 2059 inactive (inactive)
access-list acl-name line 42 extended permit tcp object-group group1 host 1.1.1.1 eq sqlnet 0x2e7027d7
access-list acl-name extended permit tcp object-group group1 host 1.1.1.1 eq sqlnet 0x2e7027d7
access-list acl-name line 42 extended deny icmp any host 1.1.1.1 log
access-list acl-name line 42 extended deny icmp any host 1.1.1.1 log 1
access-list acl-name line 42 extended deny tcp any host 1.1.1.1 log
access-list acl-name line 42 extended deny tcp any host 1.1.1.1 log 1
access-list acl-name line 42 extended deny icmp any host 1.1.1.1 timestamp-request
access-list acl-name line 42 extended deny icmp any host 1.1.1.1 traceroute
access-list acl-name line 42 extended permit object services object-group network-src object-group network-dst
access-list acl-name line 42 extended permit object services object network-src object network-dst
access-list acl-name line 42 extended permit object-group services object-group network-src object-group network-dst
access-list acl-name line 42 extended permit tcp any host 2.2.2.2 eq domain log informational interval 300 disable 0x2e7027d7
access-list acl-name line 42 extended permit tcp any host 2.2.2.2 eq domain log informational interval 300 disable default 0x2e7027d7
access-list acl-name line 42 extended permit tcp any host 2.2.2.2 eq domain log informational interval 300 default 0x2e7027d7
access-list acl-name line 42 extended permit tcp any host 2.2.2.2 eq domain log debugging interval 300 0x2e7027d7
access-list acl-name line 42 extended permit tcp any host 2.2.2.2 eq domain log notifications interval 300 0x2e7027d7
access-list acl-name line 42 extended permit icmp host 2.2.2.2 host 1.1.1.1 echo log informational interval 300
access-list acl-name line 42 extended permit tcp host 1.1.1.1 object-group group-3 eq 2059 inactive (hitcnt=0)
access-list acl-name line 42 extended permit 41 host 1.1.1.1 host 2.2.2.2
access-list acl-name line 42 extended permit 41 host 1.1.1.1 host 2.2.2.2 eq tacacs
access-list acl-name extended deny ip any4 any4
access-list acl-name extended deny ip any6 any6
access-list acl-name remark this is a remark
access-list acl-name line 0 remark this is a remark
access-list acl-name; 42 elements; name hash: 0xbe299002
access-list acl-name extended permit icmp any4 any4 object-group icmp_group
access-list acl-name line 42 extended permit icmp any4 any4 object-group icmp_group
access-list acl-name line 42 extended permit tcp host 2.2.2.2 host 3.3.3.3 eq www
access-list acl-name line 42 extended permit tcp host 2.2.2.2 host 3.3.3.3 neq www
access-list acl-name line 42 extended permit tcp host 2.2.2.2 host 3.3.3.3 ge www
access-list acl-name line 42 extended permit tcp host 2.2.2.2 host 3.3.3.3 gt www
access-list acl-name line 42 extended permit tcp host 2.2.2.2 host 3.3.3.3 le www
access-list acl-name line 42 extended permit tcp host 2.2.2.2 host 3.3.3.3 lt www
access-list acl-name line 42 extended permit tcp host 2.2.2.2 host 3.3.3.3 eq https
access-list acl-name line 42 extended permit tcp host 2.2.2.2 host 3.3.3.3 eq sunrpc
access-list acl-name line 42 extended permit tcp host 2.2.2.2 host 3.3.3.3 object dst_ports
access-list acl-name line 42 extended permit tcp host 2.2.2.2 object src_ports host 3.3.3.3
access-list acl-name line 42 extended permit tcp host 2.2.2.2 object-group src_ports host 3.3.3.3 object-group dst_ports
access-list acl-name line 42 extended permit tcp host 2.2.2.2 object-group network-dst eq 2059 inactive (inactive)
access-list acl-name line 42 extended permit tcp host 2.2.2.2 object-group network-dst eq 2059 inactive (inactive)
access-list acl-name line 42 extended permit tcp 2.2.2.2 255.255.255.0 object-group network-dst eq 2059 inactive (inactive)
access-list acl-name line 42 extended permit tcp object-group group1 host 1.1.1.1 eq sqlnet 0x2e7027d7
access-list acl-name extended permit tcp object-group group1 host 1.1.1.1 eq sqlnet 0x2e7027d7
access-list acl-name line 42 extended deny icmp any host 1.1.1.1 log
access-list acl-name line 42 extended deny icmp any host 1.1.1.1 log 1
access-list acl-name line 42 extended deny tcp any host 1.1.1.1 log
access-list acl-name line 42 extended deny tcp any host 1.1.1.1 log 1
access-list acl-name line 42 extended deny icmp any host 1.1.1.1 timestamp-request
access-list acl-name line 42 extended deny icmp any host 1.1.1.1 traceroute
access-list acl-name line 42 extended permit object services object-group network-src object-group network-dst
access-list acl-name line 42 extended permit object services object network-src object network-dst
access-list acl-name line 42 extended permit object-group services object-group network-src object-group network-dst
access-list acl-name line 42 extended permit tcp any host 2.2.2.2 eq domain log informational interval 300 disable 0x2e7027d7
access-list acl-name line 42 extended permit tcp any host 2.2.2.2 eq domain log informational interval 300 disable default 0x2e7027d7
access-list acl-name line 42 extended permit tcp any host 2.2.2.2 eq domain log informational interval 300 default 0x2e7027d7
access-list acl-name line 42 extended permit tcp any host 2.2.2.2 eq domain log debugging interval 300 0x2e7027d7
access-list acl-name line 42 extended permit tcp any host 2.2.2.2 eq domain log notifications interval 300 0x2e7027d7
access-list acl-name line 42 extended permit icmp host 2.2.2.2 host 1.1.1.1 echo log informational interval 300
access-list acl-name line 42 extended permit tcp host 1.1.1.1 object-group group-3 eq 2059 inactive (hitcnt=0)
access-list acl-name line 42 extended permit 41 host 1.1.1.1 host 2.2.2.2
access-list acl-name line 42 extended permit 41 host 1.1.1.1 host 2.2.2.2 eq tacacs
access-list acl-name extended deny ip any4 any4
access-list acl-name extended deny ip any6 any6

access-group acl-name in interface outside

Expand Down
4 changes: 4 additions & 0 deletions tests/syntax_test_cisco_ios.cisco-ios
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,10 @@ router bgp 12
ip route 1.2.4.0 255.255.255.0 1.2.3.4


interface FourtyGigE0/1

exit

interface HundredGigE1/2/3
exit

Expand Down
28 changes: 9 additions & 19 deletions tools/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,12 @@

import click
import git
import semver
from github import Github

REPO_NAME = "network_tech"


class Version:
_setup_file_path = standard.configuration_path

@classmethod
def _get_config(cls):
config = configparser.ConfigParser()
config.read(cls._setup_file_path)
return config

@classmethod
def current(cls):
file = str(pathlib.Path() / "messages.json")
Expand All @@ -34,20 +25,22 @@ def current(cls):
for version in messages_index:
if version == "install":
continue

major, minor, patch = [int(v) for v in version.split(".")]
c_major, c_minor, c_patch = current_version

if major < current_version[0]:
if major < c_major:
continue

if minor < current_version[1]:
if major == c_major and minor < c_minor:
continue

if patch < current_version[2]:
if major == c_major and minor == c_minor and patch < c_patch:
continue

current_version = (major, minor, patch)

return ".".join(current_version)
return ".".join([str(v) for v in current_version])

@classmethod
def major(cls):
Expand All @@ -74,18 +67,15 @@ def bump(cls, part):
minor += 1
elif part == "patch":
patch += 1
return ".".join([major, minor, patch])
return f"{major}.{minor}.{patch}"


def perform_release(release_type):
current_version = Version.current()

new_version = getattr(Version, release_type)()
print(current_version)
print(new_version)
return
message = create_message(new_version)
version_control(version, new_version)

version_control(current_version, new_version)
github_release(REPO_NAME, new_version, message)


Expand Down

0 comments on commit 51b6238

Please sign in to comment.