diff options
| author | Emanuele Di Pascale <emanuele@voltanet.io> | 2018-11-14 14:16:41 +0100 |
|---|---|---|
| committer | Emanuele Di Pascale <emanuele@voltanet.io> | 2018-12-18 15:23:49 +0100 |
| commit | 7b6b75e542cea5d32b6610f6232e86cf3ceeedff (patch) | |
| tree | c60c625d85721e4011e4a837a1c1b240b0b82fae /isisd/isis_cli.c | |
| parent | 5f2ce4466f5f82248a017471095b9a065bfc5512 (diff) | |
isisd: retrofit the 'isis hello-padding' command
Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
Diffstat (limited to 'isisd/isis_cli.c')
| -rw-r--r-- | isisd/isis_cli.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/isisd/isis_cli.c b/isisd/isis_cli.c index 9125acffd4..a584817507 100644 --- a/isisd/isis_cli.c +++ b/isisd/isis_cli.c @@ -1471,6 +1471,30 @@ void cli_show_ip_isis_threeway_shake(struct vty *vty, struct lyd_node *dnode, vty_out(vty, " no isis three-way-handshake\n"); } +/* + * XPath: /frr-interface:lib/interface/frr-isisd:isis/hello/padding + */ +DEFPY(isis_hello_padding, isis_hello_padding_cmd, "[no] isis hello padding", + NO_STR + "IS-IS routing protocol\n" + "Add padding to IS-IS hello packets\n" + "Pad hello packets\n") +{ + nb_cli_enqueue_change(vty, "./frr-isisd:isis/hello/padding", + NB_OP_MODIFY, no ? "false" : "true"); + + return nb_cli_apply_changes(vty, NULL); +} + +void cli_show_ip_isis_hello_padding(struct vty *vty, struct lyd_node *dnode, + bool show_defaults) +{ + if (!yang_dnode_get_bool(dnode, NULL)) + vty_out(vty, " no"); + + vty_out(vty, " isis hello padding\n"); +} + void isis_cli_init(void) { install_element(CONFIG_NODE, &router_isis_cmd); @@ -1538,6 +1562,8 @@ void isis_cli_init(void) install_element(INTERFACE_NODE, &no_isis_hello_multiplier_cmd); install_element(INTERFACE_NODE, &isis_threeway_adj_cmd); + + install_element(INTERFACE_NODE, &isis_hello_padding_cmd); } #endif /* ifndef FABRICD */ |
