Hi all,

I am from OPNFV community and working on Dovetail project.

I have a question about shade getting server public ipv4 ip and private ipv4 ip 
with VLAN environment.
The private ip I got is None and the public ip I got is not the floating ip 
assigned to the server.
I guess this is because of shade filters the public ip with 'router:external = 
True' or 'provider:physical_network' 
https://github.com/openstack-infra/shade/blob/master/shade/openstackcloud.py#L2494
For vlan, all networks have the attribute 'provider:physical_network', so all 
networks are regarded as public network.
Also it filters private ip with condition 'not network.get('router:external', 
False) and not network.get('provider:physical_network')' 
https://github.com/openstack-infra/shade/blob/master/shade/openstackcloud.py#L2509
Then there is no private network for vlan. So the server's private ip is None.

I reached out you for some suggestions about how to use shade for VLAN 
environment? Have you considered that or I just misunderstood something.

Regards,
Xudan
_______________________________________________
OpenStack-Infra mailing list
[email protected]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra

Reply via email to