Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How do i get my gateway address in heat?

I'm new to heat and i'm trying to find out what my gateway address is that was assigned by neutron. I've been able to get my ip and prefix information, but I'm not sure how to get my gateway. if someone has a basic yaml they can share that returns the VM's ip, prefix or netmask, and gateway address, that would be great. thanks in advance.

... port: type: OS::Neutron::Port properties: name: {"Fn::Join": ["-", [{ get_param: "OS::stack_name" }, "port"]]} network: { get_param: network } ...

outputs: ip: value: { get_attr: [port, fixed_ips, 0, ip_address] } network: value: { get_attr: [port, subnets, 0, cidr] }

How do i get my gateway address in heat?

I'm new to heat and i'm trying to find out what my gateway address is that was assigned by neutron. I've been able to get my ip and prefix information, but I'm not sure how to get my gateway. if someone has a basic yaml they can share that returns the VM's ip, prefix or netmask, and gateway address, that would be great. thanks in advance.

...
  port:
    type: OS::Neutron::Port
    properties:
      name: {"Fn::Join": ["-", [{ get_param: "OS::stack_name" }, "port"]]} 
      network: { get_param: network }
...

...

outputs: ip: value: { get_attr: [port, fixed_ips, 0, ip_address] } network: value: { get_attr: [port, subnets, 0, cidr] }

}