From 176bc10ed1d7657472023a7fbe42d3004602c23f Mon Sep 17 00:00:00 2001 From: Shreyas Date: Thu, 16 Mar 2023 14:29:39 -0400 Subject: [PATCH] [bugfix] Added access encap feature to the path relationship attribute of the floating svi --- client/l3extVirtualLIfP_service.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/l3extVirtualLIfP_service.go b/client/l3extVirtualLIfP_service.go index c2b6d313..4575026a 100644 --- a/client/l3extVirtualLIfP_service.go +++ b/client/l3extVirtualLIfP_service.go @@ -54,7 +54,7 @@ func (sm *ServiceManager) ListVirtualLogicalInterfaceProfile(logical_interface_p return list, err } -func (sm *ServiceManager) CreateRelationl3extRsDynPathAttFromLogicalInterfaceProfile(parentDn, tDn, addr, forgedTransmit, macChange, promMode string) error { +func (sm *ServiceManager) CreateRelationl3extRsDynPathAttFromLogicalInterfaceProfile(parentDn, tDn, addr, forgedTransmit, macChange, promMode, encap string) error { dn := fmt.Sprintf("%s/rsdynPathAtt-[%s]", parentDn, tDn) containerJSON := []byte(fmt.Sprintf(`{ "%s": { @@ -87,6 +87,10 @@ func (sm *ServiceManager) CreateRelationl3extRsDynPathAttFromLogicalInterfacePro jsonPayload.Set(promMode, "l3extRsDynPathAtt", "attributes", "promMode") } + if encap != "" { + jsonPayload.Set(encap, "l3extRsDynPathAtt", "attributes", "encap") + } + req, err := sm.client.MakeRestRequest("POST", fmt.Sprintf("%s.json", sm.MOURL), jsonPayload, true) if err != nil { return err @@ -122,6 +126,7 @@ func (sm *ServiceManager) ReadRelationl3extRsDynPathAttFromLogicalInterfaceProfi paramMap["forgedTransmit"] = models.G(contItem, "forgedTransmit") paramMap["macChange"] = models.G(contItem, "macChange") paramMap["promMode"] = models.G(contItem, "promMode") + paramMap["encap"] = models.G(contItem, "encap") st = append(st, paramMap) }