junoser 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +9 -9
- data/lib/junoser/js_ruler.rb +2 -0
- data/lib/junoser/parser.rb +2 -2
- data/lib/junoser/ruler.rb +3 -0
- data/lib/junoser/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c6e7f0c484d2690412ecf2bc8f3154fe0ff7228c61ace8ec588ea56e234d078
|
4
|
+
data.tar.gz: 85278e68967cded8e04f1e182996b9a10dc286410dd147ba50b2f0b09a982918
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a22aa17e1ffbbe6d1a34b345fdeecfe4a3e3013b4b5d9b44458d596a3243d7692edc9a90f020493d74cc1403ce74f23ec1636271d4e6e38aaa6a86d3151b7eb
|
7
|
+
data.tar.gz: f56ed2f48e4cc775d8110b80822794471d77049d8b89106474e1daf04d05aabf1a92cdbf992c4a6c863f55bcd947e2c35bb2c8070b3d75cbd1adceb54ae513e6
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
junoser (0.4.
|
4
|
+
junoser (0.4.4)
|
5
5
|
parslet
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
mini_portile2 (2.
|
11
|
-
nokogiri (1.
|
12
|
-
mini_portile2 (~> 2.
|
10
|
+
mini_portile2 (2.8.0)
|
11
|
+
nokogiri (1.13.3)
|
12
|
+
mini_portile2 (~> 2.8.0)
|
13
13
|
racc (~> 1.4)
|
14
14
|
parslet (2.0.0)
|
15
|
-
power_assert (2.0.
|
16
|
-
racc (1.
|
17
|
-
rake (13.0.
|
18
|
-
test-unit (3.
|
15
|
+
power_assert (2.0.1)
|
16
|
+
racc (1.6.0)
|
17
|
+
rake (13.0.6)
|
18
|
+
test-unit (3.5.3)
|
19
19
|
power_assert
|
20
20
|
|
21
21
|
PLATFORMS
|
@@ -29,4 +29,4 @@ DEPENDENCIES
|
|
29
29
|
test-unit
|
30
30
|
|
31
31
|
BUNDLED WITH
|
32
|
-
2.2.
|
32
|
+
2.2.26
|
data/lib/junoser/js_ruler.rb
CHANGED
@@ -168,6 +168,8 @@ module Junoser
|
|
168
168
|
str.gsub! 'policy | Define a policy context from this zone', 'from-zone | Define a policy context from this zone'
|
169
169
|
# "to-zone-name | Destination zone" -> "to-zone | Destination zone"
|
170
170
|
str.gsub! 'to-zone-name | Destination zone', 'to-zone | Destination zone'
|
171
|
+
# "system-name | System name override" -> "name | System name override"
|
172
|
+
str.gsub! 'system-name | System name override', 'name | System name override'
|
171
173
|
|
172
174
|
fix_route_filter(str)
|
173
175
|
|
data/lib/junoser/parser.rb
CHANGED
@@ -8746,7 +8746,7 @@ module Junoser
|
|
8746
8746
|
).as(:oneline),
|
8747
8747
|
b(str("snmp"),
|
8748
8748
|
c(
|
8749
|
-
a(str("
|
8749
|
+
a(str("name"), quote | arg),
|
8750
8750
|
a(str("description"), quote | arg),
|
8751
8751
|
a(str("location"), quote | arg),
|
8752
8752
|
a(str("contact"), quote | arg),
|
@@ -14289,7 +14289,7 @@ module Junoser
|
|
14289
14289
|
b(str("suppress-tlv-advertisement"),
|
14290
14290
|
(str("MANAGEMENT_ADDRESS") | str("SYSTEM_CAPABILITIES") | str("SYSTEM_DESCRIPTION") | str("SYSTEM_NAME") | str("PORT_DESCRIPTION") | str("PORT_ID") | str("CHASSIS_ID"))
|
14291
14291
|
),
|
14292
|
-
a(str("
|
14292
|
+
a(str("name"), quote | arg),
|
14293
14293
|
a(str("system-description"), arg),
|
14294
14294
|
a(str("chassis-id"), arg),
|
14295
14295
|
b(str("chassis-id-type"),
|
data/lib/junoser/ruler.rb
CHANGED
@@ -221,6 +221,9 @@ module Junoser
|
|
221
221
|
str.gsub!(/"(dest|src|static)-nat-rule-match"/) { '"match"' }
|
222
222
|
|
223
223
|
str
|
224
|
+
|
225
|
+
# Fix .xsd: "snmp system-name" should be "snmp name"
|
226
|
+
str.gsub! '"system-name" arg', '"name" (quote | arg)'
|
224
227
|
end
|
225
228
|
|
226
229
|
def format(str, offset = OFFSET)
|
data/lib/junoser/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: junoser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shintaro Kojima
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parslet
|