def getEthernetPropertyValue(self, routerId=None, ngpfEndpointName=None, property=None): """ Description Get any NGPF Ethernet property value based on the router ID or by the NGPF component name. Parameters routerId: : The router ID IP address. ngpfEndpointName: : The NGPF endpoint name. property: : The NGPF Ethernet property. Choices: name, mac, mtu, status, vlanCount, enableVlans """ ethernetProperties = ['name', 'mac', 'mtu', 'status', 'vlanCount', 'enableVlans'] if property not in ethernetProperties: raise IxNetRestApiException('\nError: No such Ethernet property: %s.\n\nAvailable NGPF Ethernet properies: %s' % (property, ethernetProperties)) if routerId: ethernetObj = self.getNgpfObjectHandleByRouterId(routerId=routerId, ngpfEndpointObject='ethernet') if ngpfEndpointName: ethernetObj = self.getNgpfObjectHandleByName(ngpfEndpointName=ngpfEndpointName, ngpfEndpointObject='ethernet') return self.ixnObj.getObjAttributeValue(ethernetObj, property)