I consider this a stopgap solution. I think in the long term we may be able to utilize jinja2 templating to allow one NIC config template to work for multiple roles. Conditionals would selectively apply the network interfaces that apply to the role.
{{ if <network> in role.networks }}
Configuration for <network>
{{ endif }}
Note that I have a review up with sample NIC templates for a Neutron networker role: /review. openstack. org/#/c/ 400390/
https:/
I consider this a stopgap solution. I think in the long term we may be able to utilize jinja2 templating to allow one NIC config template to work for multiple roles. Conditionals would selectively apply the network interfaces that apply to the role.
{{ if <network> in role.networks }}
Configuration for <network>
{{ endif }}