From 7cdb6344376623c9554dbe01a759c861e78c551b Mon Sep 17 00:00:00 2001 From: Mengdie Song Date: Fri, 28 Aug 2020 17:33:02 +0800 Subject: [PATCH] [IPv6] Display dual stack NodeSubnet in antrea-octant-plugin (#1156) NodeSubnet can have two values in dual stack case and this patch enhances octant-plugin to show both subnets. --- plugins/octant/cmd/antrea-octant-plugin/antrea_info.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/octant/cmd/antrea-octant-plugin/antrea_info.go b/plugins/octant/cmd/antrea-octant-plugin/antrea_info.go index 8d0033b2b1d..65f777cd6fa 100644 --- a/plugins/octant/cmd/antrea-octant-plugin/antrea_info.go +++ b/plugins/octant/cmd/antrea-octant-plugin/antrea_info.go @@ -18,6 +18,7 @@ import ( "context" "log" "strconv" + "strings" "github.com/vmware-tanzu/octant/pkg/plugin/service" "github.com/vmware-tanzu/octant/pkg/view/component" @@ -100,7 +101,7 @@ func (p *antreaOctantPlugin) getAgentTable(request service.Request) *component.T "/overview/namespace/"+agent.PodRef.Namespace+"/workloads/pods/"+agent.PodRef.Name), nodeCol: component.NewLink(agent.NodeRef.Name, agent.NodeRef.Name, "/cluster-overview/nodes/"+agent.NodeRef.Name), - subnetCol: component.NewText(agent.NodeSubnet[0]), + subnetCol: component.NewText(strings.Join(agent.NodeSubnet, ", ")), bridgeCol: component.NewText(agent.OVSInfo.BridgeName), podNumCol: component.NewText(strconv.Itoa(int(agent.LocalPodNum))), clusterInfoCrdCol: component.NewLink(agent.Name, agent.Name,