Add new fields to instance_net.vim_info 62/7062/4
authorAnderson Bravalheri <a.bravalheri@bristol.ac.uk>
Sun, 16 Dec 2018 19:28:37 +0000 (19:28 +0000)
committerAnderson Bravalheri <a.bravalheri@bristol.ac.uk>
Fri, 18 Jan 2019 12:24:01 +0000 (12:24 +0000)
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 <a.bravalheri@bristol.ac.uk>
osm_ro/vimconn_openstack.py

index 876fa2f..0930eb0 100644 (file)
@@ -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):