Skip to content

Commit

Permalink
Merge pull request #11 from loxilb-io/display
Browse files Browse the repository at this point in the history
PR - Minor display fixes
  • Loading branch information
UltraInstinct14 authored Sep 15, 2023
2 parents 9577a26 + 619f8c1 commit f655b8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/get/get_conntrack.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func PrintGetCTResult(resp *http.Response, o api.RESTOptions) {

// Table Init
table := TableInit()
table.SetHeader([]string{"destinationIP", "sourceIP", "destinationPort", "sourcePort", "protocol", "state", "act", "packets", "bytes"})
table.SetHeader([]string{"destIP", "srcIP", "dport", "sport", "proto", "state", "act", "packets", "bytes"})
// Making load balance data
data = makeConntrackData(ctresp)

Expand Down
6 changes: 3 additions & 3 deletions cmd/get/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
package get

var (
CONNTRACK_TITLE = []string{"destination IP", "source IP", "destination Port", "source Port", "protocol", "state", "act", "packets", "bytes"}
LOADBALANCER_TITLE = []string{"External IP", "Port", "Protocol", "Block", "Select", "Mode", "# of Endpoints", "Monitor"}
LOADBALANCER_WIDE_TITLE = []string{"External IP", "Secondary IPs", "Port", "Protocol", "block", "Select", "Mode", "Endpoint IP", "Target Port", "Weight", "State"}
CONNTRACK_TITLE = []string{"destIP", "srcIP", "dPort", "sPort", "proto", "state", "act", "packets", "bytes"}
LOADBALANCER_TITLE = []string{"External IP", "Port", "Protocol", "Mark", "Select", "Mode", "# of Endpoints", "Monitor"}
LOADBALANCER_WIDE_TITLE = []string{"External IP", "Secondary IPs", "Port", "Protocol", "Mark", "Select", "Mode", "Endpoint IP", "Target Port", "Weight", "State"}
SESSION_TITLE = []string{"ident", "session IP"}
SESSION_WIDE_TITLE = []string{"ident", "session IP", "access Network Tunnel", "core Network Tunnel"}
PORT_WIDE_TITLE = []string{"index", "portname", "MAC", "link/state", "mtu", "isActive/bpf\nPort type", "Statistics", "L3Info", "L2Info", "Sync"}
Expand Down

0 comments on commit f655b8b

Please sign in to comment.