Skip to content

Commit

Permalink
[minor_changes] Added two attributes to fvCtx
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahammughal authored and lhercot committed Jun 19, 2024
1 parent a4bf04f commit 040624e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions models/fv_ctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit 040624e

Please sign in to comment.