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

Commit

Permalink
Bond can have a parenting bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
chdxD1 committed Sep 20, 2023
1 parent d38fd29 commit 393997e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions netplanner/providers/networkd/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ def render_networks(self):
for vlan_name, vlan_config in self.config.network.vlans.items()
if interface_name == vlan_config.link
}
parent_interface = {
name: config
for name, config in self.config.network.bridges.items()
if interface_name in config.interfaces
}
case Dummy():
child_interfaces = {
vxlan_name: vxlan_config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ PrimarySlave={{ (True if parent_interface_config.parameters.primary == interface
{%- endif %}
{%- endfor %}
{%- endif %}
{%- if interface.object_name not in ['Bond', 'Dummy'] and parent_interface is defined and parent_interface != None %}
{%- if parent_interface is defined and parent_interface != None %}
{%- for parent_interface_name, parent_interface in parent_interface.items() %}
{%- if parent_interface.object_name == 'Bond' and interface.object_name == 'VLAN' %}
ConfigureWithoutCarrier=yes
Expand Down

0 comments on commit 393997e

Please sign in to comment.