mirror of
				https://github.com/opennetworkinglab/onos.git
				synced 2025-11-03 17:51:26 +01:00 
			
		
		
		
	Add IP address argument and create instance with the correct IP address
Change-Id: Ifcad63a74ef5a7cb44f9a1c2640ce9e978febd0a
This commit is contained in:
		
							parent
							
								
									6a7761904d
								
							
						
					
					
						commit
						7b1f5cb529
					
				@ -42,6 +42,7 @@ class ONOS( Controller ):
 | 
			
		||||
        # add default modules
 | 
			
		||||
        # TODO: consider an ordered set
 | 
			
		||||
        self.features = Set([ 'webconsole',
 | 
			
		||||
                              'onos-rest',
 | 
			
		||||
                              'onos-api',
 | 
			
		||||
                              'onos-cli',
 | 
			
		||||
                              'onos-openflow' ])
 | 
			
		||||
@ -63,6 +64,8 @@ class ONOS( Controller ):
 | 
			
		||||
        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:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user