Skip to content

Commit

Permalink
[minor_changes] Add all_regions and hostRouterName attributes to clou…
Browse files Browse the repository at this point in the history
…dTemplateExtNetwork model (#240)
  • Loading branch information
anvitha-jain authored Oct 19, 2022
1 parent dfa851c commit fb289fb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions models/cloudtemplate_ext_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ type CloudTemplateforExternalNetworkAttributes struct {
HubNetworkName string `json:",omitempty"`
Name string `json:",omitempty"`
VrfName string `json:",omitempty"`
AllRegion string `json:",omitempty"`
HostRouterName string `json:",omitempty"`
}

func NewCloudTemplateforExternalNetwork(cloudtemplateExtNetworkRn, parentDn, nameAlias string, cloudtemplateExtNetworkAttr CloudTemplateforExternalNetworkAttributes) *CloudTemplateforExternalNetwork {
Expand Down Expand Up @@ -62,6 +64,8 @@ func (cloudtemplateExtNetwork *CloudTemplateforExternalNetwork) ToMap() (map[str
A(cloudtemplateExtNetworkMap, "hubNetworkName", cloudtemplateExtNetwork.HubNetworkName)
A(cloudtemplateExtNetworkMap, "name", cloudtemplateExtNetwork.Name)
A(cloudtemplateExtNetworkMap, "vrfName", cloudtemplateExtNetwork.VrfName)
A(cloudtemplateExtNetworkMap, "allRegion", cloudtemplateExtNetwork.AllRegion)
A(cloudtemplateExtNetworkMap, "hostRouterName", cloudtemplateExtNetwork.HostRouterName)
return cloudtemplateExtNetworkMap, err
}

Expand All @@ -82,6 +86,8 @@ func CloudTemplateforExternalNetworkFromContainerList(cont *container.Container,
HubNetworkName: G(CloudTemplateforExternalNetworkCont, "hubNetworkName"),
Name: G(CloudTemplateforExternalNetworkCont, "name"),
VrfName: G(CloudTemplateforExternalNetworkCont, "vrfName"),
AllRegion: G(CloudTemplateforExternalNetworkCont, "allRegion"),
HostRouterName: G(CloudTemplateforExternalNetworkCont, "hostRouterName"),
},
}
}
Expand Down

0 comments on commit fb289fb

Please sign in to comment.