From bb49715b3f479180e2b115fa52ec157007262a7c Mon Sep 17 00:00:00 2001 From: atulpatel261194 Date: Mon, 20 May 2024 08:03:44 -0700 Subject: [PATCH] fix(evpn): fix mac address bytes to readable string Signed-off-by: atulpatel261194 --- cmd/network/evpn-utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/network/evpn-utils.go b/cmd/network/evpn-utils.go index a9fb647..a7bcb13 100644 --- a/cmd/network/evpn-utils.go +++ b/cmd/network/evpn-utils.go @@ -57,7 +57,7 @@ func PrintBP(bp *pb.BridgePort) { log.Println("name:", bp.GetName()) log.Println("status:", bp.GetStatus().GetOperStatus().String()) log.Println("ptype:", bp.GetSpec().GetPtype()) - log.Println("mac:", bp.GetSpec().GetMacAddress()) + log.Println("MacAddress:", net.HardwareAddr(bp.GetSpec().GetMacAddress()).String()) log.Println("bridges:", bp.GetSpec().GetLogicalBridges()) log.Println("Component Status:") log.Println(ComposeComponentsInfo(bp.GetStatus().GetComponents())) @@ -69,7 +69,7 @@ func PrintSvi(svi *pb.Svi) { log.Println("status:", svi.GetStatus().GetOperStatus().String()) log.Println("Vrf:", svi.GetSpec().GetVrf()) log.Println("LogicalBridge:", svi.GetSpec().GetLogicalBridge()) - log.Println("MacAddress:", svi.GetSpec().GetMacAddress()) + log.Println("MacAddress:", net.HardwareAddr(svi.GetSpec().GetMacAddress()).String()) log.Println("EnableBgp:", svi.GetSpec().GetEnableBgp()) log.Println("GwIPs:", ComposeGwIps(svi.GetSpec().GetGwIpPrefix())) log.Println("remoteAS:", svi.GetSpec().GetRemoteAs())