CORD-1092: Brought vRouter over to xproto
Change-Id: I6f1060f231c76b3e50c96325fb5145ad0bd9684f
diff --git a/xos/attic/vrouterapp_model.py b/xos/attic/vrouterapp_model.py
new file mode 100644
index 0000000..aef51e9
--- /dev/null
+++ b/xos/attic/vrouterapp_model.py
@@ -0,0 +1,11 @@
+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
+