From 040624e5420fc113d55309e0d76d71aafdfaed50 Mon Sep 17 00:00:00 2001 From: Abraham Mughal Date: Tue, 18 Jun 2024 14:03:15 -0700 Subject: [PATCH] [minor_changes] Added two attributes to fvCtx --- models/fv_ctx.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/models/fv_ctx.go b/models/fv_ctx.go index f1cbcf71..e94a7043 100644 --- a/models/fv_ctx.go +++ b/models/fv_ctx.go @@ -19,6 +19,10 @@ type VRFAttributes struct { Annotation string `json:",omitempty"` + PcTag string `json:",omitempty"` + + Scope string `json:",omitempty"` + BdEnforcedEnable string `json:",omitempty"` IpDataPlaneLearning string `json:",omitempty"` @@ -57,6 +61,10 @@ func (fvCtx *VRF) ToMap() (map[string]string, error) { A(fvCtxMap, "annotation", fvCtx.Annotation) + A(fvCtxMap, "pcTag", fvCtx.PcTag) + + A(fvCtxMap, "scope", fvCtx.Scope) + A(fvCtxMap, "bdEnforcedEnable", fvCtx.BdEnforcedEnable) A(fvCtxMap, "ipDataPlaneLearning", fvCtx.IpDataPlaneLearning) @@ -90,6 +98,10 @@ func VRFFromContainerList(cont *container.Container, index int) *VRF { Annotation: G(VRFCont, "annotation"), + PcTag: G(VRFCont, "pcTag"), + + Scope: G(VRFCont, "scope"), + BdEnforcedEnable: G(VRFCont, "bdEnforcedEnable"), IpDataPlaneLearning: G(VRFCont, "ipDataPlaneLearning"),