mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 18:52:04 +00:00
lib: replace AFI_ETHER reference with AFI_L2VPN
The introduction of AFI_L2VPN prefix makes usage of AFI_ETHER deprecated and is of no usage currently. The latter define is linked to AFI_L2VPN. For that, the prefix enumerate has the AFI_ETHER value removed. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
ffd28f0ec7
commit
42f621a6ea
@ -972,7 +972,7 @@ vty_prefix_list_install (struct vty *vty, afi_t afi, const char *name,
|
||||
apply_mask_ipv6 ((struct prefix_ipv6 *) &p_tmp);
|
||||
|
||||
break;
|
||||
case AFI_ETHER:
|
||||
case AFI_L2VPN:
|
||||
default:
|
||||
vty_out (vty, "%% Unrecognized AFI (%d)%s", afi, VTY_NEWLINE);
|
||||
return CMD_WARNING;
|
||||
|
@ -234,8 +234,6 @@ afi2str(afi_t afi)
|
||||
return "IPv4";
|
||||
case AFI_IP6:
|
||||
return "IPv6";
|
||||
case AFI_ETHER:
|
||||
return "ethernet";
|
||||
case AFI_L2VPN:
|
||||
return "l2vpn";
|
||||
case AFI_MAX:
|
||||
|
@ -401,7 +401,6 @@ extern const char *zserv_command_string (unsigned int command);
|
||||
typedef enum {
|
||||
AFI_IP = 1,
|
||||
AFI_IP6 = 2,
|
||||
AFI_ETHER = 3, /* RFC 1700 has "6" for 802.* */
|
||||
AFI_L2VPN = 4,
|
||||
AFI_MAX = 5
|
||||
} afi_t;
|
||||
|
Loading…
Reference in New Issue
Block a user