Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: aligned the VRF table columns #444

Merged
merged 2 commits into from
Feb 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/vrf/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ func (c *Client) Create() *cobra.Command {
data := make([][]string, 1)

// This output block below is probably incorrect but leaving it for now for testing later.
displague marked this conversation as resolved.
Show resolved Hide resolved
data[0] = []string{vrfRequest.GetId(), vrfRequest.GetName(), vrfRequest.GetDescription(), strconv.Itoa(int(vrfRequest.GetLocalAsn())), strings.Join(vrfRequest.GetIpRanges(), ","), vrfRequest.GetCreatedAt().String()}
header := []string{"ID", "Name", "Description", "LocalASN", "IPranges", "Created"}
data[0] = []string{vrfRequest.GetId(), vrfRequest.GetName(), vrfRequest.GetDescription(), strings.Join(vrfRequest.GetIpRanges(), ","), strconv.Itoa(int(vrfRequest.GetLocalAsn())), vrfRequest.GetCreatedAt().String()}
header := []string{"ID", "Name", "Description", "IPranges", "LocalASN", "Created"}

return c.Out.Output(vrfRequest, header, &data)
},
Expand Down
Loading