Skip to content

Commit

Permalink
Added toCtxDn to the leak_to model
Browse files Browse the repository at this point in the history
  • Loading branch information
sajagana authored and lhercot committed Jul 27, 2022
1 parent ce02613 commit b30e8c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/leak_to.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type TenantandVRFdestinationforInterVRFLeakedRoutesAttributes struct {
Name string `json:",omitempty"`
Scope string `json:",omitempty"`
DestinationTenantName string `json:",omitempty"`
ToCtxDn string `json:",omitempty"`
}

func NewTenantandVRFdestinationforInterVRFLeakedRoutes(leakToRn, parentDn, description, nameAlias string, leakToAttr TenantandVRFdestinationforInterVRFLeakedRoutesAttributes) *TenantandVRFdestinationforInterVRFLeakedRoutes {
Expand Down Expand Up @@ -59,6 +60,7 @@ func (leakTo *TenantandVRFdestinationforInterVRFLeakedRoutes) ToMap() (map[strin
}

A(leakToMap, "ctxName", leakTo.DestinationCtxName)
A(leakToMap, "toCtxDn", leakTo.ToCtxDn)
A(leakToMap, "name", leakTo.Name)
A(leakToMap, "scope", leakTo.Scope)
A(leakToMap, "tenantName", leakTo.DestinationTenantName)
Expand All @@ -80,6 +82,7 @@ func TenantandVRFdestinationforInterVRFLeakedRoutesFromContainerList(cont *conta
},
TenantandVRFdestinationforInterVRFLeakedRoutesAttributes{
DestinationCtxName: G(TenantandVRFdestinationforInterVRFLeakedRoutesCont, "ctxName"),
ToCtxDn: G(TenantandVRFdestinationforInterVRFLeakedRoutesCont, "toCtxDn"),
Name: G(TenantandVRFdestinationforInterVRFLeakedRoutesCont, "name"),
Scope: G(TenantandVRFdestinationforInterVRFLeakedRoutesCont, "scope"),
DestinationTenantName: G(TenantandVRFdestinationforInterVRFLeakedRoutesCont, "tenantName"),
Expand Down

0 comments on commit b30e8c0

Please sign in to comment.