Commit f151526d authored by Gerry Gunzenhauser's avatar Gerry Gunzenhauser

add cap interface setup

parent e0c71a06
Pipeline #61430 passed with stages
in 6 minutes and 30 seconds
......@@ -46,6 +46,11 @@ mod rbsetup {
generic + interfaces.as_str()
}
pub fn gen_postsetup(device: &Device) -> String {
let cap_setup = " :if ([:len [/interface wireless find]]>0) do={\n /interface wireless set country=switzerland [find] frequency-mode=regulatory-domain\n /interface wireless cap set enabled=yes bridge=switch interfaces=[/interface wireless find]\n }\n".to_owned();
cap_setup
}
}
mod gen_crs226 {
......@@ -81,7 +86,7 @@ mod gen_crs226 {
}
src += " }\n";
crate::generator::rbsetup::gen_syssetup(device) + src.as_str()
crate::generator::rbsetup::gen_syssetup(device) + src.as_str() + crate::generator::rbsetup::gen_postsetup(device).as_str()
}
fn syntax(&self) -> String {
......@@ -131,7 +136,7 @@ mod gen_crs326 {
}
src += " }\n";
crate::generator::rbsetup::gen_syssetup(device) + src.as_str()
crate::generator::rbsetup::gen_syssetup(device) + src.as_str() + crate::generator::rbsetup::gen_postsetup(device).as_str()
}
fn syntax(&self) -> String {
......@@ -177,7 +182,7 @@ mod gen_rb962u {
}
src += " }\n";
crate::generator::rbsetup::gen_syssetup(device) + src.as_str()
crate::generator::rbsetup::gen_syssetup(device) + src.as_str() + crate::generator::rbsetup::gen_postsetup(device).as_str()
}
fn syntax(&self) -> String {
......
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