diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-03-09 00:01:01 +0200 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-03-09 00:01:01 +0200 | 
| commit | c544b9e8e72c3b77cca9d3d0ceaeae427b761f2c (patch) | |
| tree | 8fc4774ff7bb5e138feaade2daf26a62bc2f27d0 /ripngd/ripng_cli.c | |
| parent | 1ba97510e2683e6178973be98f1004a45462621e (diff) | |
ripngd: fix "clear ipv6 ripng" command
mgmtd doesn't support YANG RPCs yet, so this command must go directly to
ripngd.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'ripngd/ripng_cli.c')
| -rw-r--r-- | ripngd/ripng_cli.c | 32 | 
1 files changed, 0 insertions, 32 deletions
diff --git a/ripngd/ripng_cli.c b/ripngd/ripng_cli.c index ed460a239e..4806861fe0 100644 --- a/ripngd/ripng_cli.c +++ b/ripngd/ripng_cli.c @@ -512,36 +512,6 @@ void cli_show_ipv6_ripng_split_horizon(struct vty *vty,  	}  } -/* - * XPath: /frr-ripngd:clear-ripng-route - */ -DEFPY_YANG (clear_ipv6_rip, -       clear_ipv6_rip_cmd, -       "clear ipv6 ripng [vrf WORD]", -       CLEAR_STR -       IPV6_STR -       "Clear IPv6 RIP database\n" -       VRF_CMD_HELP_STR) -{ -	struct list *input; -	int ret; - -	input = list_new(); -	if (vrf) { -		struct yang_data *yang_vrf; - -		yang_vrf = yang_data_new( -			"/frr-ripngd:clear-ripng-route/input/vrf", vrf); -		listnode_add(input, yang_vrf); -	} - -	ret = nb_cli_rpc(vty, "/frr-ripngd:clear-ripng-route", input, NULL); - -	list_delete(&input); - -	return ret; -} -  DEFPY_YANG(  	ripng_ipv6_distribute_list, ripng_ipv6_distribute_list_cmd,  	"ipv6 distribute-list ACCESSLIST6_NAME$name <in|out>$dir [WORD$ifname]", @@ -693,8 +663,6 @@ void ripng_cli_init(void)  	install_element(INTERFACE_NODE, &ipv6_ripng_split_horizon_cmd); -	install_element(ENABLE_NODE, &clear_ipv6_rip_cmd); -  	if_rmap_init(RIPNG_NODE);  }  | 
