Ask Your Question

Revision history [back]

first of all, the gateway ip address belongs to subnet resource, and it will be assigned to the OS within the VM by subnet DHCP service when connecting to a network or a network port. So you can not query gateway ip from resource with type "OS::Nova::Server" within heat template.

Usually, when you use a subnet, the gateway ip is provided by user. see OS::Neutron::Subnet#gateway_ip.

So you can run command openstack subnet show <subnet-id> to get gateway ip. where the subnet id can be found from the port resource of your VM.