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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e2a12a2f333461d8fa3fac8446e159180758be7e42a7f5f20fd537a1b43aa8d7
4
- data.tar.gz: 559deb9e18b0decf0770ad5c6c4c4f39f4e142238b15c58a7bbd07e90f10fb53
3
+ metadata.gz: 7c6e7f0c484d2690412ecf2bc8f3154fe0ff7228c61ace8ec588ea56e234d078
4
+ data.tar.gz: 85278e68967cded8e04f1e182996b9a10dc286410dd147ba50b2f0b09a982918
5
5
  SHA512:
6
- metadata.gz: ccea46701226315660767308ac13e2df613ce936277462c7c9712c95b68a6203d8f45a8a35cbc56633a09134be9915d1b60e1e62b46a74f722341b44d5c2ddff
7
- data.tar.gz: 472c7756ec33f8c973051a6a0d8a63f8f563e9ca79b883439c50a27224546267561869b22ef70ec576b3d81793dcd6f8c4dbe7b8f972bbafe09baeb997c5c642
6
+ metadata.gz: 9a22aa17e1ffbbe6d1a34b345fdeecfe4a3e3013b4b5d9b44458d596a3243d7692edc9a90f020493d74cc1403ce74f23ec1636271d4e6e38aaa6a86d3151b7eb
7
+ data.tar.gz: f56ed2f48e4cc775d8110b80822794471d77049d8b89106474e1daf04d05aabf1a92cdbf992c4a6c863f55bcd947e2c35bb2c8070b3d75cbd1adceb54ae513e6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [0.4.4] - 2022-02-26
2
+
3
+ ### Fixed
4
+
5
+ * "snmp name" instead of "snmp system-name"
6
+
7
+
1
8
  ## [0.4.3] - 2021-09-28
2
9
 
3
10
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,21 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- junoser (0.4.3)
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.6.1)
11
- nokogiri (1.12.5)
12
- mini_portile2 (~> 2.6.1)
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.0)
16
- racc (1.5.2)
17
- rake (13.0.3)
18
- test-unit (3.4.4)
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.16
32
+ 2.2.26
@@ -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
 
@@ -8746,7 +8746,7 @@ module Junoser
8746
8746
  ).as(:oneline),
8747
8747
  b(str("snmp"),
8748
8748
  c(
8749
- a(str("system-name"), arg),
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("system-name"), arg),
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)
@@ -1,3 +1,3 @@
1
1
  module Junoser
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
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.3
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: 2021-09-27 00:00:00.000000000 Z
11
+ date: 2022-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet