Sapan Bhatia | 0a56fdc | 2017-04-21 15:12:57 +0200 | [diff] [blame] | 1 | def _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 |