Commit 3104d2e7 authored by Gerry Gunzenhauser's avatar Gerry Gunzenhauser

add bridge creation

parent 250b62ae
Pipeline #60751 passed with stages
in 6 minutes and 12 seconds
......@@ -96,7 +96,14 @@ mod gen_crs326 {
impl Generator for GenCrs326 {
fn build_configuration(&self, device: &Device) -> String {
let mut src = " {\n /interface bridge port\n remove [find]\n".to_owned();
let mut src = " {\n /interface bridge\n remove [find]\n add name=switch protocol-mode=none vlan-filtering=yes\n /interface bridge port\n remove [find]\n".to_owned();
for port in device.ports.iter() {
if port.org_name != "switch" {
src += format!(" add bridge=switch interface=\"{}\"\n", port.new_name).as_str();
}
}
src += " {\n /interface bridge port\n remove [find]\n";
for port in device.ports.iter() {
if port.new_name == "switch" {
continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment