diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-08-11 17:46:31 +0300 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-08-11 17:46:36 +0300 | 
| commit | 53fc645d339d850173b860bcd3482d3d5911ac51 (patch) | |
| tree | 7fdd439b76ea226ffde31174913968fde9810812 /vtysh | |
| parent | 854571290b6dd1b3924e8b88ba7425931008fb5a (diff) | |
vtysh, pathd: fix pcep node-entering commands
pce-config, pce and pcc node-entering commands in vtysh include no-form,
which is incorrect. Currently, when user passes a no-form command like
`no pcc`, vtysh enters the node while pathd deletes the node and this
leads to a desynchronization.
Regular and no-form commands should be defined separately to fix this.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'vtysh')
| -rw-r--r-- | vtysh/vtysh.c | 9 | 
1 files changed, 3 insertions, 6 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 4d8b6062ac..998ead6b76 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -2237,8 +2237,7 @@ DEFUNSH(VTYSH_PATHD, pcep, pcep_cmd,  }  DEFUNSH(VTYSH_PATHD, pcep_cli_pcc, pcep_cli_pcc_cmd, -	"[no] pcc", -	NO_STR +	"pcc",  	"PCC configuration\n")  {  	vty->node = PCEP_PCC_NODE; @@ -2246,8 +2245,7 @@ DEFUNSH(VTYSH_PATHD, pcep_cli_pcc, pcep_cli_pcc_cmd,  }  DEFUNSH(VTYSH_PATHD, pcep_cli_pce, pcep_cli_pce_cmd, -	"[no] pce WORD", -	NO_STR +	"pce WORD",  	"PCE configuration\n"  	"Peer name\n")  { @@ -2256,8 +2254,7 @@ DEFUNSH(VTYSH_PATHD, pcep_cli_pce, pcep_cli_pce_cmd,  }  DEFUNSH(VTYSH_PATHD, pcep_cli_pcep_pce_config, pcep_cli_pcep_pce_config_cmd, -	"[no] pce-config WORD", -	NO_STR +	"pce-config WORD",  	"PCEP peer Configuration Group\n"  	"PCEP peer Configuration Group name\n")  {  | 
