Make template ovn_chassis_mac_map backwards-compatible
Semantic backport of If11f21c05a795108d76a3d210e2ebf11d7114c50 which corrects an issue with writing out the chassis map to hiera. Semantic backport was required because of pathname change. Related-Bug: #1881593 Change-Id: Id742deba9d7bec55e8476f22bc9388bb491cfdbe
This commit is contained in:
parent
2a941aa92d
commit
2e4161703c
|
@ -1 +1,3 @@
|
|||
{{ hostvars[inventory_hostname]['ovn_chassis_mac_map'] | default({}) | to_nice_json }}
|
||||
{% set ovn_chassis_mac_map_data = {} %}
|
||||
{% set _ = ovn_chassis_mac_map_data.__setitem__('ovn_chassis_mac_map', hostvars[inventory_hostname].get('ovn_chassis_mac_map', {})) %}
|
||||
{{ ovn_chassis_mac_map_data | to_nice_json }}
|
||||
|
|
Loading…
Reference in New Issue