renderer: add wired interfaces to OVS bridge

The renderer currently only adds wireless interfaces to the Open vSwitch
bridge. Also have it add wired interfaces.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
This commit is contained in:
Stijn Tintel
2021-10-29 18:07:32 +02:00
committed by John Crispin
parent 5e42737ad4
commit 75c0a3971e

View File

@@ -176,3 +176,11 @@
if (interface.captive)
include('interface/captive.uc', { name });
%}
{% if ("open-flow" in interface.services): %}
{% for (let port in keys(eth_ports)): %}
add openvswitch ovs_port;
set openvswitch.@ovs_port[-1].bridge="br-ovs";
set openvswitch.@ovs_port[-1].port="{{ port }}";
{% endfor %}
{% endif %}