diff --git a/acos_client/v21/interface.py b/acos_client/v21/interface.py index 3c08243e..66530ac3 100644 --- a/acos_client/v21/interface.py +++ b/acos_client/v21/interface.py @@ -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) @@ -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):