junoser 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +10 -16
- data/CHANGELOG.md +14 -1
- data/LICENSE.txt +1 -1
- data/README.md +1 -1
- data/Rakefile +1 -1
- data/example/vsrx-12.1.x47.rb +104 -291
- data/lib/junoser/parser.rb +89 -246
- data/lib/junoser/ruler.rb +2 -2
- data/lib/junoser/version.rb +1 -1
- data/lib/junoser/xsd/choice.rb +4 -3
- data/lib/junoser/xsd/complex_type.rb +2 -2
- data/lib/junoser/xsd/element.rb +14 -27
- data/lib/junoser/xsd/enumeration.rb +2 -2
- data/lib/junoser/xsd/restriction.rb +2 -2
- data/lib/junoser/xsd/sequence.rb +3 -3
- data/lib/junoser/xsd/simple_content.rb +1 -1
- metadata +2 -2
data/lib/junoser/parser.rb
CHANGED
@@ -2151,15 +2151,11 @@ module Junoser
|
|
2151
2151
|
),
|
2152
2152
|
b(str("attributes-match"),
|
2153
2153
|
s(
|
2154
|
-
|
2155
|
-
arg
|
2156
|
-
),
|
2154
|
+
a(str("from-event-attribute"), arg),
|
2157
2155
|
b(str("condition"),
|
2158
2156
|
(str("equals") | str("starts-with") | str("matches"))
|
2159
2157
|
),
|
2160
|
-
|
2161
|
-
arg
|
2162
|
-
)
|
2158
|
+
a(str("to-event-attribute-value"), arg)
|
2163
2159
|
)
|
2164
2160
|
).as(:oneline),
|
2165
2161
|
b(str("then"),
|
@@ -2176,9 +2172,7 @@ module Junoser
|
|
2176
2172
|
b(str("filename"),
|
2177
2173
|
arg
|
2178
2174
|
),
|
2179
|
-
|
2180
|
-
arg
|
2181
|
-
),
|
2175
|
+
a(str("destination"), arg),
|
2182
2176
|
c(
|
2183
2177
|
a(str("user-name"), arg),
|
2184
2178
|
a(str("transfer-delay"), arg),
|
@@ -3925,12 +3919,8 @@ module Junoser
|
|
3925
3919
|
),
|
3926
3920
|
b(str("policy"),
|
3927
3921
|
s(
|
3928
|
-
|
3929
|
-
|
3930
|
-
),
|
3931
|
-
b(str("to-zone-name"),
|
3932
|
-
arg
|
3933
|
-
),
|
3922
|
+
a(str("from-zone-name"), arg),
|
3923
|
+
a(str("to-zone-name"), arg),
|
3934
3924
|
c(
|
3935
3925
|
b(str("policy"),
|
3936
3926
|
policy_type
|
@@ -5681,6 +5671,12 @@ module Junoser
|
|
5681
5671
|
rule(:chassis_fpc_type) do
|
5682
5672
|
b(arg.as(:arg),
|
5683
5673
|
c(
|
5674
|
+
a(str("error"), str("fatal") | str("major") | str("minor"),
|
5675
|
+
c(
|
5676
|
+
a(str("threshold"), arg),
|
5677
|
+
a(str("action"), str("alarm") | str("disable-pfe") | str("offline-pic") | str("log") | str("get-state") | str("offline") | str("reset"))
|
5678
|
+
)
|
5679
|
+
),
|
5684
5680
|
str("sanity-poll"),
|
5685
5681
|
b(str("pic"),
|
5686
5682
|
chassis_pic_type
|
@@ -5856,12 +5852,8 @@ module Junoser
|
|
5856
5852
|
str("port"),
|
5857
5853
|
b(str("port-range"),
|
5858
5854
|
s(
|
5859
|
-
|
5860
|
-
|
5861
|
-
),
|
5862
|
-
b(str("port-range-high"),
|
5863
|
-
arg
|
5864
|
-
)
|
5855
|
+
a(str("port-range-low"), arg),
|
5856
|
+
a(str("port-range-high"), arg)
|
5865
5857
|
)
|
5866
5858
|
)
|
5867
5859
|
)
|
@@ -7812,9 +7804,7 @@ module Junoser
|
|
7812
7804
|
a(str("next"), arg),
|
7813
7805
|
b(str("logical-system"),
|
7814
7806
|
s(
|
7815
|
-
|
7816
|
-
arg
|
7817
|
-
),
|
7807
|
+
a(str("logical-system-name"), arg),
|
7818
7808
|
c(
|
7819
7809
|
b(str("routing-instance"),
|
7820
7810
|
c(
|
@@ -8363,9 +8353,7 @@ module Junoser
|
|
8363
8353
|
a(str("next"), arg),
|
8364
8354
|
b(str("logical-system"),
|
8365
8355
|
s(
|
8366
|
-
|
8367
|
-
arg
|
8368
|
-
),
|
8356
|
+
a(str("logical-system-name"), arg),
|
8369
8357
|
c(
|
8370
8358
|
b(str("routing-instance"),
|
8371
8359
|
c(
|
@@ -10448,12 +10436,8 @@ module Junoser
|
|
10448
10436
|
a(str("weight"), arg),
|
10449
10437
|
b(str("interface"),
|
10450
10438
|
s(
|
10451
|
-
|
10452
|
-
|
10453
|
-
),
|
10454
|
-
b(str("secondary-ip-address"),
|
10455
|
-
arg
|
10456
|
-
)
|
10439
|
+
a(str("logical-interface-name"), arg),
|
10440
|
+
a(str("secondary-ip-address"), arg)
|
10457
10441
|
)
|
10458
10442
|
)
|
10459
10443
|
)
|
@@ -18117,12 +18101,8 @@ module Junoser
|
|
18117
18101
|
),
|
18118
18102
|
b(str("policy"),
|
18119
18103
|
s(
|
18120
|
-
|
18121
|
-
|
18122
|
-
),
|
18123
|
-
b(str("to-zone-name"),
|
18124
|
-
arg
|
18125
|
-
),
|
18104
|
+
a(str("from-zone-name"), arg),
|
18105
|
+
a(str("to-zone-name"), arg),
|
18126
18106
|
c(
|
18127
18107
|
b(str("policy"),
|
18128
18108
|
policy_type
|
@@ -18645,18 +18625,10 @@ module Junoser
|
|
18645
18625
|
c(
|
18646
18626
|
b(str("vsi-manager"),
|
18647
18627
|
s(
|
18648
|
-
|
18649
|
-
|
18650
|
-
),
|
18651
|
-
|
18652
|
-
arg
|
18653
|
-
),
|
18654
|
-
b(str("vsi-version"),
|
18655
|
-
arg
|
18656
|
-
),
|
18657
|
-
b(str("vsi-instance"),
|
18658
|
-
arg
|
18659
|
-
)
|
18628
|
+
a(str("vsi-manager-id"), arg),
|
18629
|
+
a(str("vsi-type"), arg),
|
18630
|
+
a(str("vsi-version"), arg),
|
18631
|
+
a(str("vsi-instance"), arg)
|
18660
18632
|
)
|
18661
18633
|
)
|
18662
18634
|
)
|
@@ -18906,28 +18878,14 @@ module Junoser
|
|
18906
18878
|
b(str("community"),
|
18907
18879
|
s(
|
18908
18880
|
c(
|
18909
|
-
|
18910
|
-
|
18911
|
-
),
|
18912
|
-
|
18913
|
-
|
18914
|
-
),
|
18915
|
-
b(str("+"),
|
18916
|
-
arg
|
18917
|
-
),
|
18918
|
-
b(str("add"),
|
18919
|
-
arg
|
18920
|
-
),
|
18921
|
-
b(str("-"),
|
18922
|
-
arg
|
18923
|
-
),
|
18924
|
-
b(str("delete"),
|
18925
|
-
arg
|
18926
|
-
)
|
18881
|
+
a(str("="), arg),
|
18882
|
+
a(str("set"), arg),
|
18883
|
+
a(str("+"), arg),
|
18884
|
+
a(str("add"), arg),
|
18885
|
+
a(str("-"), arg),
|
18886
|
+
a(str("delete"), arg)
|
18927
18887
|
),
|
18928
|
-
|
18929
|
-
arg
|
18930
|
-
)
|
18888
|
+
a(str("community-name"), arg)
|
18931
18889
|
)
|
18932
18890
|
).as(:oneline),
|
18933
18891
|
a(str("damping"), arg),
|
@@ -19256,28 +19214,14 @@ module Junoser
|
|
19256
19214
|
b(str("community"),
|
19257
19215
|
s(
|
19258
19216
|
c(
|
19259
|
-
|
19260
|
-
|
19261
|
-
),
|
19262
|
-
|
19263
|
-
|
19264
|
-
),
|
19265
|
-
b(str("+"),
|
19266
|
-
arg
|
19267
|
-
),
|
19268
|
-
b(str("add"),
|
19269
|
-
arg
|
19270
|
-
),
|
19271
|
-
b(str("-"),
|
19272
|
-
arg
|
19273
|
-
),
|
19274
|
-
b(str("delete"),
|
19275
|
-
arg
|
19276
|
-
)
|
19217
|
+
a(str("="), arg),
|
19218
|
+
a(str("set"), arg),
|
19219
|
+
a(str("+"), arg),
|
19220
|
+
a(str("add"), arg),
|
19221
|
+
a(str("-"), arg),
|
19222
|
+
a(str("delete"), arg)
|
19277
19223
|
),
|
19278
|
-
|
19279
|
-
arg
|
19280
|
-
)
|
19224
|
+
a(str("community-name"), arg)
|
19281
19225
|
)
|
19282
19226
|
).as(:oneline),
|
19283
19227
|
a(str("damping"), arg),
|
@@ -19452,9 +19396,7 @@ module Junoser
|
|
19452
19396
|
|
19453
19397
|
rule(:control_prefix_list_filter_type) do
|
19454
19398
|
s(
|
19455
|
-
|
19456
|
-
arg
|
19457
|
-
),
|
19399
|
+
a(str("list_name"), arg),
|
19458
19400
|
c(
|
19459
19401
|
str("exact"),
|
19460
19402
|
str("longer"),
|
@@ -19573,28 +19515,14 @@ module Junoser
|
|
19573
19515
|
b(str("community"),
|
19574
19516
|
s(
|
19575
19517
|
c(
|
19576
|
-
|
19577
|
-
|
19578
|
-
),
|
19579
|
-
|
19580
|
-
|
19581
|
-
),
|
19582
|
-
b(str("+"),
|
19583
|
-
arg
|
19584
|
-
),
|
19585
|
-
b(str("add"),
|
19586
|
-
arg
|
19587
|
-
),
|
19588
|
-
b(str("-"),
|
19589
|
-
arg
|
19590
|
-
),
|
19591
|
-
b(str("delete"),
|
19592
|
-
arg
|
19593
|
-
)
|
19518
|
+
a(str("="), arg),
|
19519
|
+
a(str("set"), arg),
|
19520
|
+
a(str("+"), arg),
|
19521
|
+
a(str("add"), arg),
|
19522
|
+
a(str("-"), arg),
|
19523
|
+
a(str("delete"), arg)
|
19594
19524
|
),
|
19595
|
-
|
19596
|
-
arg
|
19597
|
-
)
|
19525
|
+
a(str("community-name"), arg)
|
19598
19526
|
)
|
19599
19527
|
).as(:oneline),
|
19600
19528
|
a(str("damping"), arg),
|
@@ -19699,18 +19627,10 @@ module Junoser
|
|
19699
19627
|
str("exact"),
|
19700
19628
|
str("longer"),
|
19701
19629
|
str("orlonger"),
|
19702
|
-
|
19703
|
-
|
19704
|
-
),
|
19705
|
-
|
19706
|
-
arg
|
19707
|
-
),
|
19708
|
-
b(str("prefix-length-range"),
|
19709
|
-
arg
|
19710
|
-
),
|
19711
|
-
b(str("address-mask"),
|
19712
|
-
arg
|
19713
|
-
)
|
19630
|
+
a(str("upto"), arg),
|
19631
|
+
a(str("through"), arg),
|
19632
|
+
a(str("prefix-length-range"), arg),
|
19633
|
+
a(str("address-mask"), arg)
|
19714
19634
|
),
|
19715
19635
|
c(
|
19716
19636
|
b(str("metric"),
|
@@ -19825,28 +19745,14 @@ module Junoser
|
|
19825
19745
|
b(str("community"),
|
19826
19746
|
s(
|
19827
19747
|
c(
|
19828
|
-
|
19829
|
-
|
19830
|
-
),
|
19831
|
-
|
19832
|
-
|
19833
|
-
),
|
19834
|
-
b(str("+"),
|
19835
|
-
arg
|
19836
|
-
),
|
19837
|
-
b(str("add"),
|
19838
|
-
arg
|
19839
|
-
),
|
19840
|
-
b(str("-"),
|
19841
|
-
arg
|
19842
|
-
),
|
19843
|
-
b(str("delete"),
|
19844
|
-
arg
|
19845
|
-
)
|
19748
|
+
a(str("="), arg),
|
19749
|
+
a(str("set"), arg),
|
19750
|
+
a(str("+"), arg),
|
19751
|
+
a(str("add"), arg),
|
19752
|
+
a(str("-"), arg),
|
19753
|
+
a(str("delete"), arg)
|
19846
19754
|
),
|
19847
|
-
|
19848
|
-
arg
|
19849
|
-
)
|
19755
|
+
a(str("community-name"), arg)
|
19850
19756
|
)
|
19851
19757
|
).as(:oneline),
|
19852
19758
|
a(str("damping"), arg),
|
@@ -19947,15 +19853,9 @@ module Junoser
|
|
19947
19853
|
str("exact"),
|
19948
19854
|
str("longer"),
|
19949
19855
|
str("orlonger"),
|
19950
|
-
|
19951
|
-
|
19952
|
-
),
|
19953
|
-
b(str("through"),
|
19954
|
-
arg
|
19955
|
-
),
|
19956
|
-
b(str("prefix-length-range"),
|
19957
|
-
arg
|
19958
|
-
)
|
19856
|
+
a(str("upto"), arg),
|
19857
|
+
a(str("through"), arg),
|
19858
|
+
a(str("prefix-length-range"), arg)
|
19959
19859
|
),
|
19960
19860
|
c(
|
19961
19861
|
b(str("metric"),
|
@@ -20070,28 +19970,14 @@ module Junoser
|
|
20070
19970
|
b(str("community"),
|
20071
19971
|
s(
|
20072
19972
|
c(
|
20073
|
-
|
20074
|
-
|
20075
|
-
),
|
20076
|
-
|
20077
|
-
|
20078
|
-
),
|
20079
|
-
b(str("+"),
|
20080
|
-
arg
|
20081
|
-
),
|
20082
|
-
b(str("add"),
|
20083
|
-
arg
|
20084
|
-
),
|
20085
|
-
b(str("-"),
|
20086
|
-
arg
|
20087
|
-
),
|
20088
|
-
b(str("delete"),
|
20089
|
-
arg
|
20090
|
-
)
|
19973
|
+
a(str("="), arg),
|
19974
|
+
a(str("set"), arg),
|
19975
|
+
a(str("+"), arg),
|
19976
|
+
a(str("add"), arg),
|
19977
|
+
a(str("-"), arg),
|
19978
|
+
a(str("delete"), arg)
|
20091
19979
|
),
|
20092
|
-
|
20093
|
-
arg
|
20094
|
-
)
|
19980
|
+
a(str("community-name"), arg)
|
20095
19981
|
)
|
20096
19982
|
).as(:oneline),
|
20097
19983
|
a(str("damping"), arg),
|
@@ -21439,12 +21325,8 @@ module Junoser
|
|
21439
21325
|
),
|
21440
21326
|
b(str("virtual-link"),
|
21441
21327
|
s(
|
21442
|
-
|
21443
|
-
|
21444
|
-
),
|
21445
|
-
b(str("transit-area"),
|
21446
|
-
arg
|
21447
|
-
),
|
21328
|
+
a(str("neighbor-id"), arg),
|
21329
|
+
a(str("transit-area"), arg),
|
21448
21330
|
c(
|
21449
21331
|
c(
|
21450
21332
|
str("disable")
|
@@ -21855,12 +21737,8 @@ module Junoser
|
|
21855
21737
|
),
|
21856
21738
|
b(str("virtual-link"),
|
21857
21739
|
s(
|
21858
|
-
|
21859
|
-
|
21860
|
-
),
|
21861
|
-
b(str("transit-area"),
|
21862
|
-
arg
|
21863
|
-
),
|
21740
|
+
a(str("neighbor-id"), arg),
|
21741
|
+
a(str("transit-area"), arg),
|
21864
21742
|
c(
|
21865
21743
|
c(
|
21866
21744
|
str("disable")
|
@@ -25599,12 +25477,8 @@ module Junoser
|
|
25599
25477
|
),
|
25600
25478
|
b(str("virtual-link"),
|
25601
25479
|
s(
|
25602
|
-
|
25603
|
-
|
25604
|
-
),
|
25605
|
-
b(str("transit-area"),
|
25606
|
-
arg
|
25607
|
-
),
|
25480
|
+
a(str("neighbor-id"), arg),
|
25481
|
+
a(str("transit-area"), arg),
|
25608
25482
|
c(
|
25609
25483
|
c(
|
25610
25484
|
str("disable")
|
@@ -27321,12 +27195,8 @@ module Junoser
|
|
27321
27195
|
),
|
27322
27196
|
b(str("virtual-link"),
|
27323
27197
|
s(
|
27324
|
-
|
27325
|
-
|
27326
|
-
),
|
27327
|
-
b(str("transit-area"),
|
27328
|
-
arg
|
27329
|
-
),
|
27198
|
+
a(str("neighbor-id"), arg),
|
27199
|
+
a(str("transit-area"), arg),
|
27330
27200
|
c(
|
27331
27201
|
c(
|
27332
27202
|
str("disable")
|
@@ -27737,12 +27607,8 @@ module Junoser
|
|
27737
27607
|
),
|
27738
27608
|
b(str("virtual-link"),
|
27739
27609
|
s(
|
27740
|
-
|
27741
|
-
|
27742
|
-
),
|
27743
|
-
b(str("transit-area"),
|
27744
|
-
arg
|
27745
|
-
),
|
27610
|
+
a(str("neighbor-id"), arg),
|
27611
|
+
a(str("transit-area"), arg),
|
27746
27612
|
c(
|
27747
27613
|
c(
|
27748
27614
|
str("disable")
|
@@ -29710,7 +29576,7 @@ module Junoser
|
|
29710
29576
|
),
|
29711
29577
|
b(str("family"),
|
29712
29578
|
c(
|
29713
|
-
b(str("inet"),
|
29579
|
+
b((str("inet") | str("mpls")),
|
29714
29580
|
c(
|
29715
29581
|
c(
|
29716
29582
|
str("disable")
|
@@ -29729,8 +29595,7 @@ module Junoser
|
|
29729
29595
|
sampling_family_inet6_output_type
|
29730
29596
|
)
|
29731
29597
|
)
|
29732
|
-
)
|
29733
|
-
str("mpls")
|
29598
|
+
)
|
29734
29599
|
)
|
29735
29600
|
),
|
29736
29601
|
b(a(str("instance"), arg),
|
@@ -30267,12 +30132,8 @@ module Junoser
|
|
30267
30132
|
),
|
30268
30133
|
b(str("dlv"),
|
30269
30134
|
s(
|
30270
|
-
|
30271
|
-
|
30272
|
-
),
|
30273
|
-
b(str("trusted-anchor"),
|
30274
|
-
arg
|
30275
|
-
)
|
30135
|
+
a(str("domain"), arg),
|
30136
|
+
a(str("trusted-anchor"), arg)
|
30276
30137
|
)
|
30277
30138
|
).as(:oneline),
|
30278
30139
|
a(str("secure-domains"), arg)
|
@@ -32741,15 +32602,9 @@ module Junoser
|
|
32741
32602
|
str("exact"),
|
32742
32603
|
str("longer"),
|
32743
32604
|
str("orlonger"),
|
32744
|
-
|
32745
|
-
|
32746
|
-
),
|
32747
|
-
b(str("through"),
|
32748
|
-
arg
|
32749
|
-
),
|
32750
|
-
b(str("prefix-length-range"),
|
32751
|
-
arg
|
32752
|
-
)
|
32605
|
+
a(str("upto"), arg),
|
32606
|
+
a(str("through"), arg),
|
32607
|
+
a(str("prefix-length-range"), arg)
|
32753
32608
|
),
|
32754
32609
|
c(
|
32755
32610
|
str("allow")
|
@@ -34930,12 +34785,8 @@ module Junoser
|
|
34930
34785
|
a(str("description"), quote | arg),
|
34931
34786
|
b(str("start-date"),
|
34932
34787
|
s(
|
34933
|
-
|
34934
|
-
|
34935
|
-
),
|
34936
|
-
b(str("stop-date"),
|
34937
|
-
arg
|
34938
|
-
)
|
34788
|
+
a(str("start-date"), arg),
|
34789
|
+
a(str("stop-date"), arg)
|
34939
34790
|
)
|
34940
34791
|
),
|
34941
34792
|
b(str("daily"),
|
@@ -34971,12 +34822,8 @@ module Junoser
|
|
34971
34822
|
c(
|
34972
34823
|
b(str("start-time"),
|
34973
34824
|
s(
|
34974
|
-
|
34975
|
-
|
34976
|
-
),
|
34977
|
-
b(str("stop-time"),
|
34978
|
-
arg
|
34979
|
-
)
|
34825
|
+
a(str("start-time-value"), arg),
|
34826
|
+
a(str("stop-time"), arg)
|
34980
34827
|
)
|
34981
34828
|
),
|
34982
34829
|
str("exclude"),
|
@@ -37826,12 +37673,8 @@ module Junoser
|
|
37826
37673
|
),
|
37827
37674
|
b(str("route"),
|
37828
37675
|
s(
|
37829
|
-
|
37830
|
-
|
37831
|
-
),
|
37832
|
-
b(str("routing-instance"),
|
37833
|
-
arg
|
37834
|
-
),
|
37676
|
+
a(str("route_address"), arg),
|
37677
|
+
a(str("routing-instance"), arg),
|
37835
37678
|
c(
|
37836
37679
|
a(str("priority-cost"), arg)
|
37837
37680
|
)
|