From b30e8c0c519cc10ac066b966155e41d3d8ef6acc Mon Sep 17 00:00:00 2001 From: Sabari Jaganathan <93724860+sajagana@users.noreply.github.com> Date: Wed, 27 Jul 2022 20:12:03 +0530 Subject: [PATCH] Added toCtxDn to the leak_to model --- models/leak_to.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/models/leak_to.go b/models/leak_to.go index d7493792..126e96ed 100644 --- a/models/leak_to.go +++ b/models/leak_to.go @@ -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 { @@ -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) @@ -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"),