Skip to content

Commit

Permalink
Patch 0.12.3 (#172)
Browse files Browse the repository at this point in the history
* Add new Lexer and update (#170)

* Setup: only require `ipaddress` for older python versions (#171)

* Prepare for release 0.12.3: Updating version number
  • Loading branch information
sfraint authored Nov 10, 2021
1 parent 6976ed5 commit 4f8ffa8
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion netconan/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@

__url__ = "https://github.com/intentionet/netconan"

__version__ = "0.12.2"
__version__ = "0.12.3"
30 changes: 30 additions & 0 deletions netconan/default_reserved_words.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
# These are important tokens in network device configs and should not be modified by keyword anonymization
default_reserved_words = {
'!',
'"',
'#',
'$',
'%',
Expand All @@ -41,14 +42,19 @@
'10000half',
'1000full',
'1000half',
'1000m/full',
'100full',
'100g',
'100gfull',
'100ghalf',
'100half',
'100m/full',
'100m/half',
'10full',
'10g-4x',
'10half',
'10m/full',
'10m/half',
'2',
'2-byte',
'25gbase-cr',
Expand All @@ -59,6 +65,7 @@
'40gfull',
'6pe',
'802.3ad',
'8023ad',
':',
';',
'<',
Expand Down Expand Up @@ -129,6 +136,7 @@
'activated-service-template',
'activation-character',
'active',
'active-backup',
'active-bonus',
'active-modules',
'active-server-group',
Expand Down Expand Up @@ -1136,6 +1144,7 @@
'dnsix',
'do',
'do-all',
'do-auto-recovery',
'do-until-failure',
'do-until-success',
'docsis-enable',
Expand Down Expand Up @@ -1182,6 +1191,7 @@
'ds0-group',
'dsa-signatures',
'dscp',
'dscp-lop',
'dscp-value',
'dsg',
'dsl',
Expand Down Expand Up @@ -1454,6 +1464,7 @@
'false',
'family',
'fan',
'fast',
'fast-age',
'fast-detect',
'fast-external-fallover',
Expand Down Expand Up @@ -2025,6 +2036,7 @@
'ip-options',
'ip-protocol',
'ip-range',
'ip-rr',
'ip-source-address',
'ip-sweep',
'ipaddr',
Expand Down Expand Up @@ -2059,6 +2071,7 @@
'ipsla',
'iptables',
'ipv4',
'ipv4-address',
'ipv4-l5',
'ipv4-unicast',
'ipv6',
Expand Down Expand Up @@ -2362,7 +2375,10 @@
'labeled-unicast',
'lacp',
'lacp-bypass-allow',
'lacp-rate',
'lacp-timeout',
'lacp-trunk',
'lacp-udld',
'lag',
'lan',
'land',
Expand All @@ -2380,6 +2396,7 @@
'layer2',
'layer2-control',
'layer3',
'layer3+4',
'lcd-menu',
'ldap',
'ldap-base-dn',
Expand Down Expand Up @@ -2513,6 +2530,7 @@
'log-updown',
'logfile',
'logging',
'logical',
'logical-system',
'logical-systems',
'login',
Expand Down Expand Up @@ -2615,6 +2633,7 @@
'marketing-name',
'martians',
'mask',
'mask-length',
'mask-reply',
'mask-request',
'master',
Expand Down Expand Up @@ -3359,6 +3378,7 @@
'port-mode',
'port-name',
'port-object',
'port-overload',
'port-overloading',
'port-overloading-factor',
'port-priority',
Expand All @@ -3377,6 +3397,7 @@
'portnetwork',
'portrestrole',
'ports',
'ports-threshold',
'pos',
'post',
'post-policy',
Expand Down Expand Up @@ -3569,6 +3590,7 @@
'rate-per-route',
'rate-thresholds-profile',
'raw',
'rba',
'rbacl',
'rcmd',
'rcp',
Expand Down Expand Up @@ -3885,6 +3907,7 @@
'saved-core-context',
'saved-core-files',
'scale-factor',
'scaleout-device-id',
'scan-time',
'scanning',
'sccp',
Expand Down Expand Up @@ -4075,6 +4098,7 @@
'slaves',
'slot',
'slot-table-cos',
'slow',
'slow-peer',
'slow-ramp-time',
'small',
Expand Down Expand Up @@ -4621,6 +4645,7 @@
'true',
'truncation',
'trunk',
'trunk-group',
'trunk-status',
'trunk-threshold',
'trunks',
Expand Down Expand Up @@ -4786,6 +4811,7 @@
'user-message',
'user-role',
'user-statistics',
'user-tag',
'usergroup',
'userid',
'userinfo',
Expand Down Expand Up @@ -4828,6 +4854,7 @@
'variance',
'vdc',
'vdom',
've',
'vendor-option',
'ver',
'verification',
Expand Down Expand Up @@ -4917,6 +4944,7 @@
'vrf-table-label',
'vrf-target',
'vrf-unicast-rib',
'vrid',
'vrrp',
'vrrp-group',
'vserver',
Expand Down Expand Up @@ -5022,13 +5050,15 @@
'xdmcp',
'xdr',
'xlate',
'xmit-hash-policy',
'xml',
'xml-config',
'xnm-clear-text',
'xnm-ssl',
'xns-ch',
'xns-mail',
'xns-time',
'xor',
'yellow',
'yes',
'z39-50',
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
"bidict<1.0.0",
# Only use enum34 for Python older than 3.4
'enum34<2.0.0; python_version < "3.4"',
"ipaddress<2.0.0",
# ipaddress is in the Python standard library in 3.3+
'ipaddress<2.0.0; python_version < "3.3"',
"passlib<2.0.0",
"six<2.0.0",
],
Expand Down
2 changes: 2 additions & 0 deletions tools/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ filegroup(
"@batfish//projects/batfish/src/main/antlr4/org/batfish/grammar/routing_table/ios:IosRoutingTableLexer.tokens",
"@batfish//projects/batfish/src/main/antlr4/org/batfish/grammar/routing_table/nxos:NxosRoutingTableLexer.tokens",
"@batfish//projects/batfish/src/main/antlr4/org/batfish/grammar/vyos:VyosLexer.tokens",
"@batfish//projects/batfish/src/main/antlr4/org/batfish/vendor/a10/grammar:A10Lexer.tokens",
"@batfish//projects/batfish/src/main/antlr4/org/batfish/vendor/check_point_gateway/grammar:CheckPointGatewayLexer.tokens",
],
)

Expand Down

0 comments on commit 4f8ffa8

Please sign in to comment.