Skip to content

Commit

Permalink
[IPv6] Display dual stack NodeSubnet in antrea-octant-plugin (antrea-…
Browse files Browse the repository at this point in the history
…io#1156)

NodeSubnet can have two values in dual stack case and
this patch enhances octant-plugin to show both subnets.
  • Loading branch information
mengdie-song authored and lzhecheng committed Nov 2, 2020
1 parent c341eea commit 704b65f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/octant/cmd/antrea-octant-plugin/antrea_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 704b65f

Please sign in to comment.