Merge "Add IP address argument and create instance with the correct IP address"
diff --git a/tools/test/topos/onos.py b/tools/test/topos/onos.py
index 80a8005..6dca835 100755
--- a/tools/test/topos/onos.py
+++ b/tools/test/topos/onos.py
@@ -42,6 +42,7 @@
         # add default modules
         # TODO: consider an ordered set
         self.features = Set([ 'webconsole',
+                              'onos-rest',
                               'onos-api',
                               'onos-cli',
                               'onos-openflow' ])
@@ -63,6 +64,8 @@
         if self.inNamespace:
             instanceOpts = ( '-furl mvn:org.onlab.onos/onos-features/1.0.0-SNAPSHOT/xml/features '
                              '-s 8101' )
+            if self.ip is not None:
+                instanceOpts += (' -a %s' % self.IP() )
             self.userCmd( self.karafDir + 'bin/instance create %s %s' % ( instanceOpts, self.name ) )
             self.instanceDir = self.karafDir + 'instances/%s/' % self.name
         else: