diff options
author | Parker Berberian <pberberian@iol.unh.edu> | 2019-11-12 12:54:20 -0500 |
---|---|---|
committer | Brandon Lo <lobrandon1217@gmail.com> | 2020-01-28 13:28:34 -0500 |
commit | 899e1a4baa95d0bc6f0eef34de66f0e257174878 (patch) | |
tree | 2fbc99070b2fe2d75135ca5f899ed14b12639856 /src/booking | |
parent | 30a535d7e9bdc0e3cf637207c0c100a16db81586 (diff) |
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 <pberberian@iol.unh.edu>
Diffstat (limited to 'src/booking')
-rw-r--r-- | src/booking/quick_deployer.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |