From 0fb702806f0ae0e3157fffcd541537293edb84b8 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Sun, 16 Dec 2018 19:28:37 +0000 Subject: [PATCH] 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 --- osm_ro/vimconn_openstack.py | 2 ++ 1 file changed, 2 insertions(+) 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): -- 2.25.1