From 543c37d969aa0bb57278f418112472027ab7cdb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Fr=C4=85k?= <61707914+mfr-6@users.noreply.github.com> Date: Mon, 9 Oct 2023 20:58:06 +0200 Subject: [PATCH] [minor_change] Add ipDPLearning in fvSubnet model (#285) --- models/fv_subnet.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/models/fv_subnet.go b/models/fv_subnet.go index 1884bf07..0c31eb84 100644 --- a/models/fv_subnet.go +++ b/models/fv_subnet.go @@ -21,6 +21,8 @@ type SubnetAttributes struct { Ctrl string `json:",omitempty"` + IpDataPlaneLearning string `json:",omitempty"` + NameAlias string `json:",omitempty"` Preferred string `json:",omitempty"` @@ -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) @@ -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"),