Open felipevicens opened 6 years ago
Can you try this please:
EXTERNAL_IP="${nsi.connectionPoints['haproxy-vnf:vdu01'].external.interface.address}"
@allemaos please make the change to the code, commit and pull request.
Thanks
@allemaos This is a general test for the http request generator. The idea is to get the external IP of the VNF. I shouldn't write the name of the VNF because the test can be used to any VNF. We will use it for squid NS, haproxy NS and squid+haproxy NS. Any other option?
@allemaos sorry, but this should be generic, not only for the haproxy
Would this works for you:
EXTERNAL_IP="${nsi.connectionPoints.values().first().external.interface.address}"
okey @allemaos, that worked. We should find a wait to abstract this kind of configurations to the test developer because is really difficult to generate it. Let's see how can we do it
When I try to retrieve the external IP address of the VNF under tests, The tee is failing here:
No such property: virtual_deployment_units for class github.h2020_5gtango.vnv.tee.model.NetworkServiceInstance
The property is not defined in the model -> https://github.com/sonata-nfv/tng-vnv-tee/blob/master/src/main/groovy/com/github/h2020_5gtango/vnv/tee/model/NetworkServiceInstance.groovy
This is the chain used to get the external IP:
EXTERNAL_IP="${nsi.virtual_deployment_units[0].vnfc_instance[0].connection_points[1].interface.address}"
This is the record that the tee is trying to parse: