commit | d05e688bead90f044e7eeff5df232dbae89d4de0 | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Thu Feb 04 16:13:28 2016 -0800 |
committer | Scott Baker <smbaker@gmail.com> | Thu Feb 04 16:13:28 2016 -0800 |
tree | 557409641f2e69349a98f980dc4320ba22a4faef | |
parent | 2d3eab4c3c7c587397cf8bee63034f163a7cbf10 [diff] |
apply slice.exposed_ports to network.ports when nat-net instantiated
diff --git a/xos/synchronizers/openstack/model_policies/model_policy_Slice.py b/xos/synchronizers/openstack/model_policies/model_policy_Slice.py index bb95b54..088d583 100644 --- a/xos/synchronizers/openstack/model_policies/model_policy_Slice.py +++ b/xos/synchronizers/openstack/model_policies/model_policy_Slice.py
@@ -64,6 +64,8 @@ template = NetworkTemplate.objects.get(name='Public shared IPv4'), owner = slice ) + if slice.exposed_ports: + nat_net.ports = slice.exposed_ports nat_net.save() public_nets.append(nat_net) print "MODEL POLICY: slice", slice, "made nat-net"