diff options
| author | Trey Aspelund <taspelund@nvidia.com> | 2023-03-31 13:13:01 -0400 |
|---|---|---|
| committer | Trey Aspelund <taspelund@nvidia.com> | 2023-05-30 15:20:35 +0000 |
| commit | 6cabac8505361dfab4b20d2e589938a6593a5f4d (patch) | |
| tree | 1b898e16be5411e1f28a0baa911b4cd04c3870e0 /bgpd/bgp_evpn_vty.c | |
| parent | badc4857aa71c53de3594bf9f621f3630f20fdea (diff) | |
bgpd: fix rc for invalid mac-vrf soo
Change CMD_WARNING -> CMD_WARNING_CONFIG_FAILED so that the rc is
non-zero and the caller can detect a failure.
Signed-off-by: Trey Aspelund <taspelund@nvidia.com>
Diffstat (limited to 'bgpd/bgp_evpn_vty.c')
| -rw-r--r-- | bgpd/bgp_evpn_vty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c index a5ffda95d1..0a61da2591 100644 --- a/bgpd/bgp_evpn_vty.c +++ b/bgpd/bgp_evpn_vty.c @@ -4009,7 +4009,7 @@ DEFPY(macvrf_soo_global, macvrf_soo_global_cmd, ecomm_soo = ecommunity_str2com(soo, ECOMMUNITY_SITE_ORIGIN, 0); if (!ecomm_soo) { vty_out(vty, "%% Malformed SoO extended community\n"); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } ecommunity_str(ecomm_soo); |
