projects
/
osm
/
SO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cal refactor sync - Ver3
[osm/SO.git]
/
rwcal
/
plugins
/
vala
/
rwcal_openstack
/
rift
/
rwcal
/
openstack
/
utils
/
network.py
diff --git
a/rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/utils/network.py
b/rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/utils/network.py
index
8e5107b
..
8e6f608
100644
(file)
--- a/
rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/utils/network.py
+++ b/
rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/utils/network.py
@@
-1,6
+1,6
@@
#!/usr/bin/python
#!/usr/bin/python
-#
+#
# Copyright 2017 RIFT.IO Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Copyright 2017 RIFT.IO Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@
-131,7
+131,11
@@
class NetworkUtils(object):
network_ids.append(self.driver._mgmt_network_id)
### Create ports and collect port ids
network_ids.append(self.driver._mgmt_network_id)
### Create ports and collect port ids
- port_ids = self.driver.neutron_multi_port_create(port_args)
+ if port_args:
+ port_ids = self.driver.neutron_multi_port_create(port_args)
+ else:
+ port_ids = list()
+
return port_ids, network_ids
return port_ids, network_ids