mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 03:53:38 +00:00
Merge pull request #10935 from anlancs/zebra-mh-esi-warning
zebra: adjust the warnings for ESI of evpn-mh
This commit is contained in:
commit
cd876f8a78
@ -3867,13 +3867,13 @@ DEFUN (bgp_evpn_advertise_type5,
|
||||
|
||||
if (!(afi == AFI_IP || afi == AFI_IP6)) {
|
||||
vty_out(vty,
|
||||
"%%only ipv4 or ipv6 address families are supported\n");
|
||||
"%% Only ipv4 or ipv6 address families are supported\n");
|
||||
return CMD_WARNING;
|
||||
}
|
||||
|
||||
if (safi != SAFI_UNICAST) {
|
||||
vty_out(vty,
|
||||
"%%only ipv4 unicast or ipv6 unicast are supported\n");
|
||||
"%% Only ipv4 unicast or ipv6 unicast are supported\n");
|
||||
return CMD_WARNING;
|
||||
}
|
||||
|
||||
@ -4058,13 +4058,13 @@ DEFUN (no_bgp_evpn_advertise_type5,
|
||||
|
||||
if (!(afi == AFI_IP || afi == AFI_IP6)) {
|
||||
vty_out(vty,
|
||||
"%%only ipv4 or ipv6 address families are supported\n");
|
||||
"%% Only ipv4 or ipv6 address families are supported\n");
|
||||
return CMD_WARNING;
|
||||
}
|
||||
|
||||
if (safi != SAFI_UNICAST) {
|
||||
vty_out(vty,
|
||||
"%%only ipv4 unicast or ipv6 unicast are supported\n");
|
||||
"%% Only ipv4 unicast or ipv6 unicast are supported\n");
|
||||
return CMD_WARNING;
|
||||
}
|
||||
|
||||
|
@ -3359,7 +3359,8 @@ DEFPY(zebra_evpn_es_sys_mac,
|
||||
|
||||
ret = zebra_evpn_es_sys_mac_update(zif, &mac->eth_addr);
|
||||
if (ret == -1) {
|
||||
vty_out(vty, "%%ESI already exists on a different interface\n");
|
||||
vty_out(vty,
|
||||
"%% ESI already exists on a different interface\n");
|
||||
return CMD_WARNING;
|
||||
}
|
||||
}
|
||||
@ -3392,7 +3393,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 +3406,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);
|
||||
|
Loading…
Reference in New Issue
Block a user