junoser 0.2.8 → 0.2.9
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/CHANGELOG.md +6 -1
- data/example/vsrx-12.1.x47.rb +49 -0
- data/lib/junoser/parser.rb +48 -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: dcc2305a9081162da839d2c3fe83ba2af80b14e2
|
|
4
|
+
data.tar.gz: 1b6ad6a20cfab2c3c91e0a22725abf6752079efa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4434bdc506ae36efb9dae6263117243f9e647877fbccb6a5d06bd1d806374f5f9eb1e4a8d7495092e55f5a106a445bd2c33391c10cd43b3861cc5147529f7225
|
|
7
|
+
data.tar.gz: d268c3dca1bdfea50ab3c268098c8eed86729bab9293b655a91677cb6af36c06b6cc4026b846457fb9880ff2b3012b5a91692279f1ccaf197ec81eebe24044b8
|
data/CHANGELOG.md
CHANGED
data/example/vsrx-12.1.x47.rb
CHANGED
|
@@ -22958,6 +22958,9 @@ rule(:juniper_protocols) do
|
|
|
22958
22958
|
),
|
|
22959
22959
|
"layer2-control" (
|
|
22960
22960
|
juniper_protocols_layer2_control
|
|
22961
|
+
),
|
|
22962
|
+
"sflow" (
|
|
22963
|
+
juniper_protocols_sflow
|
|
22961
22964
|
)
|
|
22962
22965
|
)
|
|
22963
22966
|
end
|
|
@@ -38431,3 +38434,49 @@ rule(:app_engine_management_service) do
|
|
|
38431
38434
|
)
|
|
38432
38435
|
)
|
|
38433
38436
|
end
|
|
38437
|
+
|
|
38438
|
+
rule(:juniper_protocols_sflow) do
|
|
38439
|
+
c(
|
|
38440
|
+
"agent-id" ipaddr,
|
|
38441
|
+
"collector" ipaddr (
|
|
38442
|
+
"udp-port" arg
|
|
38443
|
+
),
|
|
38444
|
+
"interfaces" arg (
|
|
38445
|
+
c(
|
|
38446
|
+
"polling-interval" arg,
|
|
38447
|
+
"sample-rate" (
|
|
38448
|
+
c(
|
|
38449
|
+
"egress" arg,
|
|
38450
|
+
"ingress" arg,
|
|
38451
|
+
)
|
|
38452
|
+
)
|
|
38453
|
+
)
|
|
38454
|
+
),
|
|
38455
|
+
"polling-interval" arg,
|
|
38456
|
+
"sample-rate" (
|
|
38457
|
+
c(
|
|
38458
|
+
"egress" arg,
|
|
38459
|
+
"ingress" arg
|
|
38460
|
+
)
|
|
38461
|
+
),
|
|
38462
|
+
"source-ip" ipaddr,
|
|
38463
|
+
"disable-sw-rate-limiter",
|
|
38464
|
+
"traceoptions" (
|
|
38465
|
+
c(
|
|
38466
|
+
"file" (
|
|
38467
|
+
c(
|
|
38468
|
+
"filename" arg,
|
|
38469
|
+
"files" arg,
|
|
38470
|
+
"no-stamp",
|
|
38471
|
+
"replace",
|
|
38472
|
+
"size" arg,
|
|
38473
|
+
"world-readable",
|
|
38474
|
+
"no-world-readable",
|
|
38475
|
+
arg
|
|
38476
|
+
)
|
|
38477
|
+
),
|
|
38478
|
+
"flag" ("all" | "client-server" | "configuration" | "interface" | "rtsock").as(:oneline)
|
|
38479
|
+
)
|
|
38480
|
+
)
|
|
38481
|
+
)
|
|
38482
|
+
end
|
data/lib/junoser/parser.rb
CHANGED
|
@@ -22844,6 +22844,9 @@ module Junoser
|
|
|
22844
22844
|
),
|
|
22845
22845
|
b(str("layer2-control"),
|
|
22846
22846
|
juniper_protocols_layer2_control
|
|
22847
|
+
),
|
|
22848
|
+
b(str("sflow"),
|
|
22849
|
+
juniper_protocols_sflow
|
|
22847
22850
|
)
|
|
22848
22851
|
)
|
|
22849
22852
|
end
|
|
@@ -38229,5 +38232,50 @@ module Junoser
|
|
|
38229
38232
|
)
|
|
38230
38233
|
)
|
|
38231
38234
|
end
|
|
38235
|
+
|
|
38236
|
+
rule(:juniper_protocols_sflow) do
|
|
38237
|
+
c(
|
|
38238
|
+
a(str("agent-id"), ipaddr),
|
|
38239
|
+
b(a(str("collector"), ipaddr),
|
|
38240
|
+
a(str("udp-port"), arg)
|
|
38241
|
+
),
|
|
38242
|
+
b(a(str("interfaces"), arg),
|
|
38243
|
+
c(
|
|
38244
|
+
a(str("polling-interval"), arg),
|
|
38245
|
+
b(str("sample-rate"),
|
|
38246
|
+
c(
|
|
38247
|
+
a(str("egress"), arg),
|
|
38248
|
+
a(str("ingress"), arg),
|
|
38249
|
+
)
|
|
38250
|
+
)
|
|
38251
|
+
)
|
|
38252
|
+
),
|
|
38253
|
+
a(str("polling-interval"), arg),
|
|
38254
|
+
b(str("sample-rate"),
|
|
38255
|
+
c(
|
|
38256
|
+
a(str("egress"), arg),
|
|
38257
|
+
a(str("ingress"), arg)
|
|
38258
|
+
)
|
|
38259
|
+
),
|
|
38260
|
+
a(str("source-ip"), ipaddr),
|
|
38261
|
+
str("disable-sw-rate-limiter"),
|
|
38262
|
+
b(str("traceoptions"),
|
|
38263
|
+
c(
|
|
38264
|
+
b(str("file"),
|
|
38265
|
+
sca(
|
|
38266
|
+
a(str("files"), arg),
|
|
38267
|
+
str("no-stamp"),
|
|
38268
|
+
str("replace"),
|
|
38269
|
+
a(str("size"), arg),
|
|
38270
|
+
str("world-readable"),
|
|
38271
|
+
str("no-world-readable"),
|
|
38272
|
+
arg
|
|
38273
|
+
)
|
|
38274
|
+
),
|
|
38275
|
+
a(str("flag"), str("all") | str("client-server") | str("configuration") | str("interface") | str("rtsock")).as(:oneline)
|
|
38276
|
+
)
|
|
38277
|
+
)
|
|
38278
|
+
)
|
|
38279
|
+
end
|
|
38232
38280
|
end
|
|
38233
38281
|
end
|
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.2.
|
|
4
|
+
version: 0.2.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shintaro Kojima
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-06-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: parslet
|