Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions acos_client/v21/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ def update(self, ifnum, ip_address=None, ip_netmask=None, dhcp=False, enable=Non
def ethernet(self):
return EthernetInterface(self.client)

@property
def virtual_ethernet(self):
return VirtualEthernetInterface(self.client)

@property
def management(self):
return ManagementInterface(self.client)
Expand All @@ -70,6 +74,11 @@ class EthernetInterface(Interface):
pass


class VirtualEthernetInterface(Interface):
def get(self):
return self._get('network.ve.getAll')


class ManagementInterface(Interface):
def _build_payload(self, ifnum=None, ip_address=None, ip_netmask=None, ip_gateway=None,
dhcp=False, enable=None, speed="auto", apps_use_mgmt_port=True, **kwargs):
Expand Down