]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: restore pre-evpn output behavior
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 16 Feb 2017 14:12:22 +0000 (15:12 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 16 Feb 2017 14:12:22 +0000 (15:12 +0100)
If an EVPN entry is detected, and type is not route type 5, displays the
Ethernet MAC configured, as it was before evpn is introduced.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
lib/prefix.c

index 19cf7dd8f98a6aa6b391b9267e7362ce2ae77f83..dec22a44a3a0f58c17521e1b54cf8772c6c7a7d8 100644 (file)
@@ -883,6 +883,11 @@ prefix2str (union prefixconstptr pu, char *str, int size)
         else
           {
             sprintf (str, "UNK AF_ETHER prefix");
+            snprintf(str, size, "%02x:%02x:%02x:%02x:%02x:%02x/%d",
+                     p->u.prefix_eth.octet[0], p->u.prefix_eth.octet[1],
+                     p->u.prefix_eth.octet[2], p->u.prefix_eth.octet[3],
+                     p->u.prefix_eth.octet[4], p->u.prefix_eth.octet[5],
+                     p->prefixlen);
           }
         break;
       default: