components/openstack/neutron/files/agent/solaris/net_lib.py
changeset 3998 5bd484384122
parent 2083 87196737f09f
child 4975 6445e44cfccd
child 6035 c9748fcc32de
equal deleted inserted replaced
3997:0ca3f3d6c919 3998:5bd484384122
   194             return
   194             return
   195 
   195 
   196         cmd = ['/usr/sbin/dladm', 'delete-vnic', self._dlname]
   196         cmd = ['/usr/sbin/dladm', 'delete-vnic', self._dlname]
   197         self.execute_with_pfexec(cmd)
   197         self.execute_with_pfexec(cmd)
   198 
   198 
       
   199     @classmethod
       
   200     def show_vnic(cls):
       
   201         cmd = ['/usr/sbin/dladm', 'show-vnic', '-po', 'link']
       
   202         stdout = utils.execute(cmd)
       
   203 
       
   204         return stdout.splitlines()
       
   205 
   199 
   206 
   200 class IPpoolCommand(CommandBase):
   207 class IPpoolCommand(CommandBase):
   201     '''Wrapper around Solaris ippool(1m) command'''
   208     '''Wrapper around Solaris ippool(1m) command'''
   202 
   209 
   203     def __init__(self, pool_name, role='ipf', pool_type='tree'):
   210     def __init__(self, pool_name, role='ipf', pool_type='tree'):