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:
Philippe Guibert 2017-02-03 07:59:20 +01:00
parent ffd28f0ec7
commit 42f621a6ea
3 changed files with 1 additions and 4 deletions

View File

@ -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;

View File

@ -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:

View File

@ -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;