Configure the IGMP/DHCP flows in olt app.
Update cord/olt apps used by cord-tester.
Change-Id: Ie58dc1f9c6536513a0f66fc40e197f4a52e40217
diff --git a/src/test/utils/OnosCtrl.py b/src/test/utils/OnosCtrl.py
index 64a2ea6..457c05b 100644
--- a/src/test/utils/OnosCtrl.py
+++ b/src/test/utils/OnosCtrl.py
@@ -451,3 +451,13 @@
defaultVlan = defaultVlan)
cls.config(device_config, controller = controller)
+
+ @classmethod
+ def config_olt_component(cls, controller = None, enableDhcpIgmpOnProvisioning = True, defaultVlan = 0):
+ if controller is None:
+ controller = cls.controller
+ olt_property_url = 'configuration/org.opencord.olt.impl.Olt'
+ property_url = 'http://{}:8181/onos/v1/{}'.format(controller, olt_property_url)
+ cfg = dict(enableDhcpIgmpOnProvisioning = enableDhcpIgmpOnProvisioning, defaultVlan = defaultVlan)
+ resp = requests.post(property_url, auth = cls.auth, data = json.dumps(cfg))
+ return resp.ok, resp.status_code