blob: aef51e971e2df465dd0472163cd84934d4c3cd19 [file] [log] [blame]
Sapan Bhatia0a56fdc2017-04-21 15:12:57 +02001def _get_interfaces(self):
2 app_interfaces = []
3 devices = VRouterDevice.objects.filter(vrouter_service=self.vrouter_service)
4 for device in devices:
5 ports = VRouterPort.objects.filter(vrouter_device=device.id)
6 for port in ports:
7 interfaces = VRouterInterface.objects.filter(vrouter_port=port.id)
8 for iface in interfaces:
9 app_interfaces.append(iface.name)
10 return app_interfaces
11