Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Commit

Permalink
host and group now also vor bridge_vlan
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jul 13, 2022
1 parent adb1686 commit a6ce3a9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions roles/ansible_openwrtnetwork/tasks/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@
- name: combine all devices into openwrt_network_devices
set_fact:
openwrt_network_devices: "{{ openwrt_network_deviceshost | default({}) | combine(openwrt_network_devicesmergedgroup | default({}) ) }}"
# Merge VLAN Devices
- name: merge bridge vlans
set_fact:
openwrt_network_bridge_vlanmergedgroup: "{{ openwrt_network_bridge_vlangroup.keys() | list | intersect(group_names) | map('extract', openwrt_network_bridge_vlangroup) | combine }}"
when: openwrt_network_bridge_vlangroup is defined
- name: combine all bridge_vlan into openwrt_network_bridge_vlan
set_fact:
openwrt_network_bridge_vlan: "{{ openwrt_network_bridge_vlanhost | default({}) | combine(openwrt_network_bridge_vlanmergedgroup | default({}) ) }}"

0 comments on commit a6ce3a9

Please sign in to comment.