Patch committed: https://review.openstack.org/#/c/492189/3/ooi/api/helpers_neutron.py
And tested:
# Command: occi --endpoint https://nimbus.ncg.ingrid.pt:8787/occi1.1 -a describe -X -r network --auth token -q $TID
# Partial output: (...) ################################################################################################################################################################################################################ [[ http://schemas.ogf.org/occi/infrastructure#network ]] >> location: /occi1.1/network/496cac2f-d45b-49d5-9ab4-66792fe10673 occi.core.id = 496cac2f-d45b-49d5-9ab4-66792fe10673 occi.core.title = indigo_private_net occi.network.state = active occi.network.address = 192.168.1.0/24 occi.network.gateway = 192.168.1.254 org.openstack.network.ip_version = 4
Links:
Mixins:
[[ http://schemas.ogf.org/occi/infrastructure/network#ipnetwork ]] title: IP Networking Mixin term: ipnetwork location: /mixin/ipnetwork/
[[ http://schemas.openstack.org/infrastructure/network#osnetwork ]] title: openstack network term: osnetwork location: /mixin/osnetwork/
Actions:
[[ http://schemas.ogf.org/occi/infrastructure/network/action#up ]]
[[ http://schemas.ogf.org/occi/infrastructure/network/action#down ]] ################################################################################################################################################################################################################ [[ http://schemas.ogf.org/occi/infrastructure#network ]] >> location: /occi1.1/network/PUBLIC occi.core.id = PUBLIC occi.core.title = public_net occi.network.state = active
[[ http://schemas.ogf.org/occi/infrastructure/network/action#down ]] (...)
# /var/log/nova/nova-api.log
2017-08-10 10:10:15.991 15712 INFO nova.ooi.wsgi.server [req-60f312fd-f96f-4b5d-8042-80d73bf95b2f 6de2ec5e6c16439c98a3d8251dc3c305 2712d6a5a05f403899e3cd019644e9dc - - -] 194.210.119.252,10.197.6.149 "GET /occi1.1/network/496cac2f-d45b-49d5-9ab4-66792fe10673 HTTP/1.1" status: 200 len: 1397 time: 0.2676220 2017-08-10 10:10:16.525 15712 ERROR ooi.api.helpers_neutron [req-3758b4c7-0bd5-4909-9aae-665968fee947 6de2ec5e6c16439c98a3d8251dc3c305 2712d6a5a05f403899e3cd019644e9dc - - -] No details from the requested subnet can be fetched 2017-08-10 10:10:16.529 15712 INFO nova.ooi.wsgi.server [req-3758b4c7-0bd5-4909-9aae-665968fee947 6de2ec5e6c16439c98a3d8251dc3c305 2712d6a5a05f403899e3cd019644e9dc - - -] 194.210.119.252,10.197.6.149 "GET /occi1.1/network/PUBLIC HTTP/1.1" status: 200 len: 1134 time: 0.3647342
Patch committed: https:/ /review. openstack. org/#/c/ 492189/ 3/ooi/api/ helpers_ neutron. py
And tested:
# Command: occi --endpoint https:/ /nimbus. ncg.ingrid. pt:8787/ occi1.1 -a describe -X -r network --auth token -q $TID
# Partial output: ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ##### schemas. ogf.org/ occi/infrastruc ture#network ]] 1/network/ 496cac2f- d45b-49d5- 9ab4-66792fe106 73 d45b-49d5- 9ab4-66792fe106 73 address = 192.168.1.0/24 gateway = 192.168.1.254 network. ip_version = 4
(...)
#######
[[ http://
>> location: /occi1.
occi.core.id = 496cac2f-
occi.core.title = indigo_private_net
occi.network.state = active
occi.network.
occi.network.
org.openstack.
Links:
Mixins:
[[ http:// schemas. ogf.org/ occi/infrastruc ture/network# ipnetwork ]]
title: IP Networking Mixin
term: ipnetwork
location: /mixin/ipnetwork/
[[ http:// schemas. openstack. org/infrastruct ure/network# osnetwork ]]
title: openstack network
term: osnetwork
location: /mixin/osnetwork/
Actions:
[[ http:// schemas. ogf.org/ occi/infrastruc ture/network/ action# up ]]
[[ http:// schemas. ogf.org/ occi/infrastruc ture/network/ action# down ]] ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ##### schemas. ogf.org/ occi/infrastruc ture#network ]] 1/network/ PUBLIC
#######
[[ http://
>> location: /occi1.
occi.core.id = PUBLIC
occi.core.title = public_net
occi.network.state = active
Links:
Mixins:
[[ http:// schemas. ogf.org/ occi/infrastruc ture/network# ipnetwork ]]
title: IP Networking Mixin
term: ipnetwork
location: /mixin/ipnetwork/
[[ http:// schemas. openstack. org/infrastruct ure/network# osnetwork ]]
title: openstack network
term: osnetwork
location: /mixin/osnetwork/
Actions:
[[ http:// schemas. ogf.org/ occi/infrastruc ture/network/ action# up ]]
[[ http:// schemas. ogf.org/ occi/infrastruc ture/network/ action# down ]]
(...)
# /var/log/ nova/nova- api.log
2017-08-10 10:10:15.991 15712 INFO nova.ooi. wsgi.server [req-60f312fd- f96f-4b5d- 8042-80d73bf95b 2f 6de2ec5e6c16439 c98a3d8251dc3c3 05 2712d6a5a05f403 899e3cd019644e9 dc - - -] 194.210. 119.252, 10.197. 6.149 "GET /occi1. 1/network/ 496cac2f- d45b-49d5- 9ab4-66792fe106 73 HTTP/1.1" status: 200 len: 1397 time: 0.2676220 helpers_ neutron [req-3758b4c7- 0bd5-4909- 9aae-665968fee9 47 6de2ec5e6c16439 c98a3d8251dc3c3 05 2712d6a5a05f403 899e3cd019644e9 dc - - -] No details from the requested subnet can be fetched wsgi.server [req-3758b4c7- 0bd5-4909- 9aae-665968fee9 47 6de2ec5e6c16439 c98a3d8251dc3c3 05 2712d6a5a05f403 899e3cd019644e9 dc - - -] 194.210. 119.252, 10.197. 6.149 "GET /occi1. 1/network/ PUBLIC HTTP/1.1" status: 200 len: 1134 time: 0.3647342
2017-08-10 10:10:16.525 15712 ERROR ooi.api.
2017-08-10 10:10:16.529 15712 INFO nova.ooi.