You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`--initial-domain x` or `-i x` : (INT) initial observation domain id, x >= 0, Default: `0`
25
+
-`--initial-domain x` or `-i x` : (Integer) initial observation domain id, x >= 0, Default: `0`
26
26
27
-
-`--additional-domains x` or `-a x` : (INT) amount of additional observation domains, x >= 0, Default: `0`
27
+
-`--additional-domains x` or `-a x` : (Integer) amount of additional observation domains, x >= 0, Default: `0`
28
28
29
-
-`--message-size s` or `-s s` : (STR) size of payload data, s = small or s = big, Default: `small`
29
+
-`--message-amount x` or `-n x` : (Integer) amount of messages to send, x >= 1, Default: `1`
30
30
31
-
-`--message-amount x` or `-n x`: (INT) amount of messages to send, x >= 1, Default: `1`
31
+
-`--encoding <encoding>` or `-e <encoding>`: (String) encoding of the UDP-notif payload. Options: [`json`, `xml`]. Default: `json`.
32
32
33
-
-`--mtu x` or `-m x` : (INT) maximum transmission unit, 16 < x < 65535, Default: `1500`
33
+
-`--mtu x` or `-m x` : (Integer) maximum transmission unit, 16 < x < 65535, Default: `1500`
34
34
35
-
-`--waiting-time f` or `-w f` : (FLOAT) waiting time (in seconds) between two messages, x > 0, Default: `0`
35
+
-`--waiting-time f` or `-w f` : (Float) waiting time (in seconds) between two messages, x > 0, Default: `0`
36
36
37
-
-`--probability-of-loss f` or `-p f` : (FLOAT) segment loss probability, 0 <= x < 1, Default: `0`
37
+
-`--probability-of-loss f` or `-p f` : (Float) segment loss probability, 0 <= x < 1, Default: `0`
38
38
39
-
-`--random-order x` or `-r x` : (INT) forward segments in random order, x = 0 or x = 1, Default: `0`
39
+
-`--logging-level s` or `-l s` : (String) logging level, s = none or s = warning or s = info or s = debug, Default: `info`
40
40
41
-
-`--logging-level s` or `-l s` : (STR) logging level, s = none or s = warning or s = info or s = debug, Default: `warning`
41
+
-`--capture <path>` or `-c <path>` : (String) Save a wireshark capture of the forwarded packets in the `<path>`. Default: `None` (disabled).
42
42
43
-
-`--capture x` or `-c x` : (INT) Set to 1 if you need a wireshark capture of the forwarded packets, x = 1 or x = 0, Default: `0`
44
-
45
-
-`--legacy x` or `-e x` : (INT) Set to 1 if you generate legacy headers: [draft-ietf-netconf-udp-pub-channel-05](https://datatracker.ietf.org/doc/draft-ietf-netconf-udp-pub-channel/), /!\ No segmentation is possible. x = 1 or x = 0, Default: `0`
43
+
-`--legacy` or `-leg` : Generate legacy headers as defined in [draft-ietf-netconf-udp-pub-channel-05](https://datatracker.ietf.org/doc/draft-ietf-netconf-udp-pub-channel/), /!\ No segmentation is possible. Default: Disabled
46
44
47
45
## Examples
48
46
49
-
1 segment of size 12 + 716 (header + payload) with a json payload, from observation domain 0, with no loss probability, logging control messages only
47
+
One YANG-push message [RFC8641](https://www.rfc-editor.org/rfc/rfc8641) using UDP-notif as transport.
2 messages of 5 shuffled segments of size 1500 with a json payload, from observation domains 10 and 11, with 0.1 loss probability and 0.1 second wait time between messages, logging control messages and segment headers
60
-
```shell
61
-
$ sudo python3 src/main.py 192.0.2.66 192.0.2.66 3456 3457 -n 2 -r 1 -s big -i 10 -a 1 -p 0.1 -w 0.1 -l info
62
-
```
57
+
## NETCONF configuration XML examples
58
+
59
+
As defined in [RFC8641](https://www.rfc-editor.org/rfc/rfc8641), configured subscriptions are configured via Netconf RPC `<edit-config>`.
60
+
61
+
Examples of configuration files can be found in [configurations](./src/resources/xml/subscription/).
0 commit comments