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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/junoser/parser.rb +10 -12
- data/lib/junoser/ruler.rb +7 -0
- data/lib/junoser/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72e2cd307c5161e27121a912e61ebe546a61452a
|
4
|
+
data.tar.gz: b98bb546574beb5f71f28b45ce6756ec438a16be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 744fa2b2cc6c716cf55146a9a09ce2ded270821621bd42cd8d08ecc5fc3b758ed78a1fdaa4abee1e85b1c8e2430559aa888922426d83d258f794770c56e267ec
|
7
|
+
data.tar.gz: 08e47a6fa0bd8dcd7753a478636157148630cc6c1caab6a949485f206942341dede2efe9dcadaa678cf1231c8f0e1d95cdcb44f0c8a03a4746f9571872b3080c
|
data/CHANGELOG.md
CHANGED
data/lib/junoser/parser.rb
CHANGED
@@ -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-
|
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-
|
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
|
-
|
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
|
-
|
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
|
|
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.1.
|
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-
|
11
|
+
date: 2015-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parslet
|