commit | 7a61509f6dea568620d59fd03fd17c77a2f0607d | [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 | 4193a7ba7bf0f2bcb1e8d54cca900db6c5f4458a | |
parent | bee958ca629ce009178eed7906b6969608620728 [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"