From 109c34e468b922aa8d8f7f6bba424bb80eec5ff1 Mon Sep 17 00:00:00 2001 From: Abraham Mughal Date: Mon, 5 Aug 2024 15:35:15 -0700 Subject: [PATCH] [minor_change] added seg attribute to fvBD --- models/fv_bd.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/models/fv_bd.go b/models/fv_bd.go index 119efe66..f7dabbe0 100644 --- a/models/fv_bd.go +++ b/models/fv_bd.go @@ -51,6 +51,8 @@ type BridgeDomainAttributes struct { BridgeDomain_type string `json:",omitempty"` + Seg string `json:",omitempty"` + UnicastRoute string `json:",omitempty"` UnkMacUcastAct string `json:",omitempty"` @@ -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) @@ -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"),