From: Anderson Bravalheri Date: Sun, 16 Dec 2018 19:28:37 +0000 (+0000) Subject: Add new fields to instance_net.vim_info X-Git-Tag: v5.0.3~4^2~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F62%2F7062%2F4;p=osm%2FRO.git Add new fields to instance_net.vim_info VIM Connectors should provide the fields "encapsulation_type" and "encapsulation_id", as discussed in the WIM implementation meeting (21/Nov/2018). Change-Id: I654d8fa93bef7c37c7ce575c0335154e99fd7347 Signed-off-by: Anderson Bravalheri --- diff --git a/osm_ro/vimconn_openstack.py b/osm_ro/vimconn_openstack.py index 876fa2f4..0930eb03 100644 --- a/osm_ro/vimconn_openstack.py +++ b/osm_ro/vimconn_openstack.py @@ -568,7 +568,9 @@ class vimconnector(vimconn.vimconnector): subnets.append(subnet) net["subnets"] = subnets net["encapsulation"] = net.get('provider:network_type') + net["encapsulation_type"] = net.get('provider:network_type') net["segmentation_id"] = net.get('provider:segmentation_id') + net["encapsulation_id"] = net.get('provider:segmentation_id') return net def delete_network(self, net_id):