blob: aef51e971e2df465dd0472163cd84934d4c3cd19 [file] [log] [blame]
def _get_interfaces(self):
app_interfaces = []
devices = VRouterDevice.objects.filter(vrouter_service=self.vrouter_service)
for device in devices:
ports = VRouterPort.objects.filter(vrouter_device=device.id)
for port in ports:
interfaces = VRouterInterface.objects.filter(vrouter_port=port.id)
for iface in interfaces:
app_interfaces.append(iface.name)
return app_interfaces