From 794ba73d0a941e4af4c9aa25f0a4565d7c881c79 Mon Sep 17 00:00:00 2001 From: codinja1188 <3358152+vasubabu@users.noreply.github.com> Date: Fri, 2 Feb 2024 20:26:58 +0530 Subject: [PATCH 1/2] fix: Re-alligned the vrf table columns --- internal/vrf/create.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/vrf/create.go b/internal/vrf/create.go index 33f75416..80124cc4 100644 --- a/internal/vrf/create.go +++ b/internal/vrf/create.go @@ -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. - 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) }, From 5dffeb7ffccdc1a3a8dec16bca423a97fcba0d29 Mon Sep 17 00:00:00 2001 From: Marques Johansson Date: Fri, 2 Feb 2024 13:42:52 -0500 Subject: [PATCH 2/2] Update internal/vrf/create.go --- internal/vrf/create.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/vrf/create.go b/internal/vrf/create.go index 80124cc4..7d8f8277 100644 --- a/internal/vrf/create.go +++ b/internal/vrf/create.go @@ -50,7 +50,6 @@ 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. 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"}