Skip to content

Commit

Permalink
[minor_change] Add ipDPLearning in fvSubnet model (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfr-6 authored Oct 9, 2023
1 parent ca2de35 commit 543c37d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions models/fv_subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ type SubnetAttributes struct {

Ctrl string `json:",omitempty"`

IpDataPlaneLearning string `json:",omitempty"`

NameAlias string `json:",omitempty"`

Preferred string `json:",omitempty"`
Expand Down Expand Up @@ -57,6 +59,8 @@ func (fvSubnet *Subnet) ToMap() (map[string]string, error) {

A(fvSubnetMap, "ctrl", fvSubnet.Ctrl)

A(fvSubnetMap, "ipDPLearning", fvSubnet.IpDataPlaneLearning)

A(fvSubnetMap, "nameAlias", fvSubnet.NameAlias)

A(fvSubnetMap, "preferred", fvSubnet.Preferred)
Expand Down Expand Up @@ -88,6 +92,8 @@ func SubnetFromContainerList(cont *container.Container, index int) *Subnet {

Ctrl: G(SubnetCont, "ctrl"),

IpDataPlaneLearning: G(SubnetCont, "ipDPLearning"),

NameAlias: G(SubnetCont, "nameAlias"),

Preferred: G(SubnetCont, "preferred"),
Expand Down

0 comments on commit 543c37d

Please sign in to comment.