diff options
| author | anlan_cs <vic.lan@pica8.com> | 2022-03-30 21:45:32 -0400 |
|---|---|---|
| committer | anlan_cs <vic.lan@pica8.com> | 2022-04-01 03:00:11 -0400 |
| commit | 2e39ebbb09650632ff95c27fb8c69ae6a6f12b34 (patch) | |
| tree | 0a390d32acf664ac6645b67ace89b5b2174ba237 /zebra/zebra_evpn_mh.c | |
| parent | 403715424069cbf831bd532c615d36d83e5c6c1c (diff) | |
zebra: adjust the warnings for ESI of evpn-mh
Since there are two kinds of ESI (Type-0 and Type-3), the warnings
should distinguish between the two cases.
Signed-off-by: anlan_cs <vic.lan@pica8.com>
Diffstat (limited to 'zebra/zebra_evpn_mh.c')
| -rw-r--r-- | zebra/zebra_evpn_mh.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/zebra/zebra_evpn_mh.c b/zebra/zebra_evpn_mh.c index 02eda4a438..ca29e3a991 100644 --- a/zebra/zebra_evpn_mh.c +++ b/zebra/zebra_evpn_mh.c @@ -3392,7 +3392,8 @@ DEFPY(zebra_evpn_es_id, ret = zebra_evpn_es_type0_esi_update(zif, zero_esi); if (ret == -1) { - vty_out(vty, "%%Failed to clear ES local id\n"); + vty_out(vty, + "%% Failed to clear ES local id or ESI name\n"); return CMD_WARNING; } } else { @@ -3404,13 +3405,14 @@ DEFPY(zebra_evpn_es_id, if (esi_str) { if (!str_to_esi(esi_str, &esi)) { - vty_out(vty, "%% Malformed ESI\n"); + vty_out(vty, "%% Malformed ESI name\n"); return CMD_WARNING; } ret = zebra_evpn_es_type0_esi_update(zif, &esi); } else { if (!es_lid) { - vty_out(vty, "%%Specify local ES ID\n"); + vty_out(vty, + "%% Specify ES local id or ESI name\n"); return CMD_WARNING; } ret = zebra_evpn_es_lid_update(zif, es_lid); |
