mirror of
https://github.com/Telecominfraproject/wlan-ucentral-schema.git
synced 2026-01-27 18:23:32 +00:00
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:
committed by
John Crispin
parent
5e42737ad4
commit
75c0a3971e
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user