junoser 0.1.5 → 0.1.6

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
  SHA1:
3
- metadata.gz: 31acb1e8abc3e39683666d17d250fb3be8872ec2
4
- data.tar.gz: 578af0518c95aeaf82f3e59ff2ec0b946b6a5a2e
3
+ metadata.gz: 72e2cd307c5161e27121a912e61ebe546a61452a
4
+ data.tar.gz: b98bb546574beb5f71f28b45ce6756ec438a16be
5
5
  SHA512:
6
- metadata.gz: e8fa45ce896e5c1ef6c0ddae5069a1bcc54d5b81e8c640802478e6e97e864e3404c2cd14d504a5b00ffb6a09e6844452bc81cc8a304a053f2808a61da451b2b9
7
- data.tar.gz: e64e18d06b8539668e3214f9bba8720f13bfb499f64abe1a004df87e4606e818512936d2424f4e02ff0d049ec7d200896bb0f387fb8410432e67be1e035cc90c
6
+ metadata.gz: 744fa2b2cc6c716cf55146a9a09ce2ded270821621bd42cd8d08ecc5fc3b758ed78a1fdaa4abee1e85b1c8e2430559aa888922426d83d258f794770c56e267ec
7
+ data.tar.gz: 08e47a6fa0bd8dcd7753a478636157148630cc6c1caab6a949485f206942341dede2efe9dcadaa678cf1231c8f0e1d95cdcb44f0c8a03a4746f9571872b3080c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.1.6 / 2015-10-31
2
+
3
+ * Bug fix
4
+ * route-filter statement should be translated into one-line
5
+
1
6
  ## 0.1.5 / 2015-09-11
2
7
 
3
8
  * Bug fix
@@ -18792,12 +18792,12 @@ module Junoser
18792
18792
  b(str("policy"),
18793
18793
  policy_algebra
18794
18794
  ),
18795
- b(str("route-filter"),
18795
+ b(a(str("route-filter"), arg),
18796
18796
  control_route_filter_type
18797
- ),
18798
- b(str("source-address-filter"),
18797
+ ).as(:oneline),
18798
+ b(a(str("source-adress-filter"), arg),
18799
18799
  control_source_address_filter_type
18800
- ),
18800
+ ).as(:oneline),
18801
18801
  b(str("prefix-list"),
18802
18802
  control_prefix_list_type
18803
18803
  ),
@@ -19153,12 +19153,12 @@ module Junoser
19153
19153
  b(str("policy"),
19154
19154
  policy_algebra
19155
19155
  ),
19156
- b(str("route-filter"),
19156
+ b(a(str("route-filter"), arg),
19157
19157
  control_route_filter_type
19158
- ),
19159
- b(str("source-address-filter"),
19158
+ ).as(:oneline),
19159
+ b(a(str("source-adress-filter"), arg),
19160
19160
  control_source_address_filter_type
19161
- ),
19161
+ ).as(:oneline),
19162
19162
  b(str("prefix-list"),
19163
19163
  control_prefix_list_type
19164
19164
  ),
@@ -19813,8 +19813,7 @@ module Junoser
19813
19813
  end
19814
19814
 
19815
19815
  rule(:control_route_filter_type) do
19816
- s(
19817
- arg,
19816
+ b(
19818
19817
  c(
19819
19818
  b(str("exact"),
19820
19819
  arg
@@ -20079,8 +20078,7 @@ module Junoser
20079
20078
  end
20080
20079
 
20081
20080
  rule(:control_source_address_filter_type) do
20082
- s(
20083
- arg,
20081
+ b(
20084
20082
  c(
20085
20083
  b(str("exact"),
20086
20084
  arg
data/lib/junoser/ruler.rb CHANGED
@@ -108,6 +108,13 @@ end"
108
108
  str.gsub!(/"http"(.*)"https"/) { %["https"#$1"http"] }
109
109
  str.gsub!(/"snmp"(.*)"snmptrap"/) { %["snmptrap"#$1"snmp"] }
110
110
 
111
+ str.gsub!(/(rule\(:juniper_policy_options\) do\s*)sc\(/) { "#{$1}c(" }
112
+
113
+ str.gsub!(/"route-filter" (\(\s*control_route_filter_type\s*\))/) { %["route-filter" arg #{$1}.as(:oneline)] }
114
+ str.gsub!(/(rule\(:control_route_filter_type\) do\s*)s\(\s*arg,/) { "#{$1}b(" }
115
+ str.gsub!(/"source-address-filter" (\(\s*control_source_address_filter_type\s*\))/) { %["source-adress-filter" arg #{$1}.as(:oneline)] }
116
+ str.gsub!(/(rule\(:control_source_address_filter_type\) do\s*)s\(\s*arg,/) { "#{$1}b(" }
117
+
111
118
  str
112
119
  end
113
120
 
@@ -1,3 +1,3 @@
1
1
  module Junoser
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
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.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shintaro Kojima
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-10 00:00:00.000000000 Z
11
+ date: 2015-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet