]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: reflect mac handling change of apis to bgpd
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 3 Feb 2017 08:10:08 +0000 (09:10 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 14 Feb 2017 12:59:00 +0000 (13:59 +0100)
As the prefix call function for mac handling has prefix_ prepended
before, the change must be propagated to all locations where those
functions are called.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_attr_evpn.c
bgpd/bgp_route.c
bgpd/rfapi/rfapi_vty.c

index 929b4c17c3323f1d16c1afdccb3b3e82438feecc..f60784e70867570429754c08d0234fe4a7a85e68 100644 (file)
@@ -171,7 +171,7 @@ char *ecom_mac2str(char *ecom_mac)
 
        en = ecom_mac;
        en += 2;
-       return mac2str(en, NULL, 0);
+       return prefix_mac2str(en, NULL, 0);
 }
 
 /* dst prefix must be AF_INET or AF_INET6 prefix, to forge EVPN prefix */
index 3d23fa4ca6b4bcfe8c6db0ff54a65a3ec7ab8548..55823a272fd0a2e41ac6252ecb7fe8e55ff9436b 100644 (file)
@@ -4502,7 +4502,7 @@ bgp_static_set_safi (safi_t safi, struct vty *vty, const char *ip_str,
           vty_out (vty, "%% Malformed ESI%s", VTY_NEWLINE);
           return CMD_WARNING;
         }
-      if( routermac && str2mac (routermac, NULL) == 0)
+      if( routermac && prefix_str2mac (routermac, NULL) == 0)
         {
           vty_out (vty, "%% Malformed Router MAC%s", VTY_NEWLINE);
           return CMD_WARNING;
@@ -4568,7 +4568,7 @@ bgp_static_set_safi (safi_t safi, struct vty *vty, const char *ip_str,
           if( routermac)
             {
               bgp_static->router_mac = XCALLOC (MTYPE_ATTR, ETHER_ADDR_LEN+1);
-              str2mac (routermac, bgp_static->router_mac);
+              prefix_str2mac (routermac, bgp_static->router_mac);
             }
           if (gwip)
             prefix_copy (&bgp_static->gatewayIp, &gw_ip);
@@ -10531,7 +10531,7 @@ bgp_config_write_network_evpn (struct vty *vty, struct bgp *bgp,
             char *esi = NULL;
 
             if(bgp_static->router_mac)
-              macrouter = mac2str(bgp_static->router_mac, NULL, 0);
+              macrouter = prefix_mac2str(bgp_static->router_mac, NULL, 0);
             if(bgp_static->eth_s_id)
               esi = esi2str(bgp_static->eth_s_id);
            p = &rn->p;
index be7fbc63a25737688c7f9e54ee257f4e73df8766..22489e87e22e427dfa6387390d8a9fee8e35f505 100644 (file)
@@ -314,7 +314,7 @@ rfapiL2o2Qprefix (struct rfapi_l2address_option *l2o, struct prefix *pfx)
 char *
 rfapiEthAddr2Str (const struct ethaddr *ea, char *buf, int bufsize)
 {
-  return mac2str (ea->octet, buf, bufsize);
+  return prefix_mac2str (ea->octet, buf, bufsize);
 }
 
 int