Skip to content

Commit

Permalink
Added pcEnfPref attribute to l3extInstP
Browse files Browse the repository at this point in the history
  • Loading branch information
sajagana authored and lhercot committed Dec 9, 2022
1 parent d9e1e93 commit cd304a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/l3ext_inst_p.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type ExternalNetworkInstanceProfileAttributes struct {
PrefGrMemb string `json:",omitempty"`
Prio string `json:",omitempty"`
TargetDscp string `json:",omitempty"`
PcEnfPref string `json:",omitempty"`
}

func NewExternalNetworkInstanceProfile(l3extInstPRn, parentDn, description string, l3extInstPattr ExternalNetworkInstanceProfileAttributes) *ExternalNetworkInstanceProfile {
Expand Down Expand Up @@ -61,6 +62,7 @@ func (l3extInstP *ExternalNetworkInstanceProfile) ToMap() (map[string]string, er
A(l3extInstPMap, "prefGrMemb", l3extInstP.PrefGrMemb)
A(l3extInstPMap, "prio", l3extInstP.Prio)
A(l3extInstPMap, "targetDscp", l3extInstP.TargetDscp)
A(l3extInstPMap, "pcEnfPref", l3extInstP.PcEnfPref)

return l3extInstPMap, err
}
Expand All @@ -87,6 +89,7 @@ func ExternalNetworkInstanceProfileFromContainerList(cont *container.Container,
PrefGrMemb: G(ExternalNetworkInstanceProfileCont, "prefGrMemb"),
Prio: G(ExternalNetworkInstanceProfileCont, "prio"),
TargetDscp: G(ExternalNetworkInstanceProfileCont, "targetDscp"),
PcEnfPref: G(ExternalNetworkInstanceProfileCont, "pcEnfPref"),
},
}
}
Expand Down

0 comments on commit cd304a3

Please sign in to comment.