equal
deleted
inserted
replaced
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'): |