diff --git a/tools/test/scenarios/bin/check-dhcp-netcfg.py b/tools/test/scenarios/bin/check-dhcp-netcfg.py
index ed5622e56a..c828c8476a 100755
--- a/tools/test/scenarios/bin/check-dhcp-netcfg.py
+++ b/tools/test/scenarios/bin/check-dhcp-netcfg.py
@@ -11,38 +11,34 @@ if len(sys.argv) < 3:
node = sys.argv[1]
-cfgRequest = requests.get('http://' + node + ':8181/onos/v1/network/configuration',
+cfgRequest = requests.get('http://' + node +
+ ':8181/onos/v1/network/configuration/apps/org.onosproject.dhcp',
auth=HTTPBasicAuth('onos', 'rocks'))
+print cfgRequest.text
+
if cfgRequest.status_code != 200:
- print cfgRequest.text
sys.exit(1)
cfgJson = cfgRequest.json()
-appFound = False
-
for index in range(2, len(sys.argv)):
pair = sys.argv[index].split("=")
- for app in cfgJson["apps"]:
- if app == "org.onosproject.dhcp":
- dhcp = cfgJson["apps"][app]["dhcp"]
- appFound = True
- name = pair[0]
- value = pair[1]
+ dhcp = cfgJson["dhcp"]
+ appFound = True
- if dhcp[name] != value:
- print name + " differs: expected " + value + " but found " + dhcp[name]
- print cfgJson
- sys.exit(1)
+ name = pair[0]
+ value = pair[1]
-if appFound:
- sys.exit(0)
+ if dhcp[name] != value:
+ print name + " differs: expected " + value + " but found " + dhcp[name]
+ print cfgJson
+ sys.exit(1)
+
+
+sys.exit(0)
-print "DHCP app not found"
-print cfgJson
-sys.exit(2)
diff --git a/tools/test/scenarios/drivers-test.xml b/tools/test/scenarios/drivers-test.xml
index f3488a7a7d..7bc2bbaa2c 100644
--- a/tools/test/scenarios/drivers-test.xml
+++ b/tools/test/scenarios/drivers-test.xml
@@ -17,47 +17,46 @@
description="Driver CLI activate/deactivate test">
-
-
-
-
-
+
+
-
-
+
+
-
-
+
+
-
-
-
+
+
-
-
+
+
-
-
+
+
-
-
-
-
-
diff --git a/tools/test/scenarios/netcfg.xml b/tools/test/scenarios/netcfg.xml
index 474079e07b..caf1e9f139 100644
--- a/tools/test/scenarios/netcfg.xml
+++ b/tools/test/scenarios/netcfg.xml
@@ -22,8 +22,16 @@
+
+
+
+
+
+
+
-