From 899e1a4baa95d0bc6f0eef34de66f0e257174878 Mon Sep 17 00:00:00 2001 From: Parker Berberian Date: Tue, 12 Nov 2019 12:54:20 -0500 Subject: Begin Resource Refactor Begins the Resource Refactor by creating new interfaces to the resources through a Resource super class and using that new interface in the api Change-Id: I15a8179bfe915d2cde6d658d056e11cbd2c70e43 Signed-off-by: Parker Berberian --- src/booking/quick_deployer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/booking') diff --git a/src/booking/quick_deployer.py b/src/booking/quick_deployer.py index 0e0cc5a..4ec488e 100644 --- a/src/booking/quick_deployer.py +++ b/src/booking/quick_deployer.py @@ -245,7 +245,7 @@ def configure_networking(grb, config): # create network net = Network.objects.create(name="public", bundle=grb, is_public=True) # connect network to generic host - grb.getHosts()[0].generic_interfaces.first().connections.add( + grb.getResources()[0].generic_interfaces.first().connections.add( NetworkConnection.objects.create(network=net, vlan_is_tagged=False) ) # asign network role -- cgit 1.2.3-korg