Skip to content

Commit

Permalink
[minor_change] added seg attribute to fvBD
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahammughal authored and lhercot committed Aug 7, 2024
1 parent 14014af commit 109c34e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions models/fv_bd.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ type BridgeDomainAttributes struct {

BridgeDomain_type string `json:",omitempty"`

Seg string `json:",omitempty"`

UnicastRoute string `json:",omitempty"`

UnkMacUcastAct string `json:",omitempty"`
Expand Down Expand Up @@ -117,6 +119,8 @@ func (fvBD *BridgeDomain) ToMap() (map[string]string, error) {

A(fvBDMap, "nameAlias", fvBD.NameAlias)

A(fvBDMap, "seg", fvBD.Seg)

A(fvBDMap, "type", fvBD.BridgeDomain_type)

A(fvBDMap, "unicastRoute", fvBD.UnicastRoute)
Expand Down Expand Up @@ -182,6 +186,8 @@ func BridgeDomainFromContainerList(cont *container.Container, index int) *Bridge

BridgeDomain_type: G(BridgeDomainCont, "type"),

Seg: G(BridgeDomainCont, "seg"),

UnicastRoute: G(BridgeDomainCont, "unicastRoute"),

UnkMacUcastAct: G(BridgeDomainCont, "unkMacUcastAct"),
Expand Down

0 comments on commit 109c34e

Please sign in to comment.