tripleo-heat-templates/releasenotes/notes/use-subnet-attr-interface-default-route-2578a4d292901024.yaml
Harald Jensås ce9a83c8cd Use get_attr to set %network%InterfaceDefaultRoute
For networks in role.default_route_networks use get_attr
to fetch the gateway_ip of the port's subnet and pass
it to the nic-config template.

Changes the default in nic-config templates to ''.

Closes-Bug: #1821046
Change-Id: Ic07a3166fafba3aa307a9e1953b3e3be2594a6f5
2019-03-21 00:26:26 +01:00

10 lines
440 B
YAML

---
features:
- |
The *get_attr* function is now used to read the ``gateway_ip`` of a ports
subnet. The gateway_ip value is passed to nic config templates using the
``%network%InterfaceDefaultRoute`` parameter. (This parameter is only used
if the network is present in the roles ``default_route_networks``.) Using
*get_attr* ensures that the correct gateway ip address is used when
networks have multiple subnets.