X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=common%2Fpython%2Frift%2Fmano%2Ftosca_translator%2Frwmano%2Ftosca%2Ftosca_network_network.py;h=a9f9c778dc693a66b9b707c39ff3e7fca3c6bba0;hb=a94a81cc5320aee3cbe05bbdbf3b6f0b244fb19f;hp=a94624de3f95e64e314afaf37dfd6cf4c325c56e;hpb=d04550842ce8c7eeac9cb6234ba5a931d14d42ba;p=osm%2FSO.git diff --git a/common/python/rift/mano/tosca_translator/rwmano/tosca/tosca_network_network.py b/common/python/rift/mano/tosca_translator/rwmano/tosca/tosca_network_network.py index a94624de..a9f9c778 100644 --- a/common/python/rift/mano/tosca_translator/rwmano/tosca/tosca_network_network.py +++ b/common/python/rift/mano/tosca_translator/rwmano/tosca/tosca_network_network.py @@ -89,7 +89,7 @@ class ToscaNetwork(ManoResource): ip_profile_param['gateway-address'] = specs['gateway_ip'] if 'ip_version' in specs: ip_profile_param['ip-version'] = 'ipv' + str(specs['ip_version']) - if 'ip_version' in specs: + if 'cidr' in specs: ip_profile_param['subnet-address'] = specs['cidr'] ip_profile_prop['ip-profile-params'] = ip_profile_param