Skip to content

Commit

Permalink
[IPv6] Display dual stack NodeSubnet in antrea-octant-plugin (#1156)
Browse files Browse the repository at this point in the history
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 wenyingd committed Sep 25, 2020
1 parent da03a6d commit 73394b3
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 73394b3

Please sign in to comment.