[CORD-3154] Adding support for host-learning config in fabric ports
Change-Id: Ic7f00d625ecd6fc6e0085a01bfccd3dd5fc64d7b
diff --git a/xos/synchronizer/steps/test_sync_fabric_port.py b/xos/synchronizer/steps/test_sync_fabric_port.py
index 00aded5..696a6a7 100644
--- a/xos/synchronizer/steps/test_sync_fabric_port.py
+++ b/xos/synchronizer/steps/test_sync_fabric_port.py
@@ -100,6 +100,7 @@
self.o = Mock()
self.o.id = 1
self.o.tologdict.return_value = {}
+ self.o.host_learning = True
@@ -127,7 +128,10 @@
"name": intf1.name,
"ips": [ intf1.ips ]
}
- ]
+ ],
+ "hostLearning": {
+ "enabled": self.o.host_learning
+ }
}
}
}
@@ -153,6 +157,7 @@
self.o.interfaces.all.return_value = [intf1]
self.o.switch.ofId = "of:1234"
self.o.portId = "1"
+ self.o.host_learning = False
expected_conf = {
"ports": {
@@ -163,7 +168,10 @@
"ips": [intf1.ips],
"vlan-untagged": intf1.vlanUntagged
}
- ]
+ ],
+ "hostLearning": {
+ "enabled": self.o.host_learning
+ }
}
}
}