localcommon_string="Valid options are:<br />".."1. all (All the routes)<br />".."2. none (No routes)<br />".."3. filter <b>Your_Filter_Name</b> (Call a specific filter from any of the available in the filters files)"
localimp_string="Set if the protocol must import routes.<br />"..common_string
localexp_string="Set if the protocol must export routes.<br />"..common_string
sect_kernel_protos=m:section(TypedSection,"kernel","Kernel options","Configuration of the kernel protocols. First Instance MUST be Primary table (no table or kernel_table fields).")
sect_kernel_protos.addremove=true
sect_kernel_protos.anonymous=false
-- Default kernel parameters
disabled=sect_kernel_protos:option(Flag,"disabled","Disabled","If this option is true, the protocol will not be configured.")
sect_pipe_protos=m:section(TypedSection,"pipe","Pipe options","Configuration of the Pipe protocols.")
sect_pipe_protos.addremove=true
sect_pipe_protos.anonymous=false
-- Default Pipe parameters
disabled=sect_pipe_protos:option(Flag,"disabled","Disabled","If this option is true, the protocol will not be configured. This protocol will connect the configured 'Table' to the 'Peer Table'.")
disabled.default=0
table=sect_pipe_protos:option(ListValue,"table","Table","Select the Primary Table to connect.")
table.optional=false
uci:foreach("bird6","table",
function(s)
table:value(s.name)
end)
table:value("")
table.default=""
peer_table=sect_pipe_protos:option(ListValue,"peer_table","Peer Table","Select the Secondary Table to connect.")
table.optional=false
uci:foreach("bird6","table",
function(s)
peer_table:value(s.name)
end)
peer_table:value("")
peer_table.default=""
mode=sect_pipe_protos:option(ListValue,"mode","Mode","Select <b>transparent</b> to retransmit all routes and their attributes<br />Select <b>opaque</b> to retransmit optimal routes (similar to what other protocols do)")
sect_direct_protos=m:section(TypedSection,"direct","Direct options","Configuration of the Direct protocols.")
sect_direct_protos.addremove=true
sect_direct_protos.anonymous=false
-- Default Direct parameters
disabled=sect_direct_protos:option(Flag,"disabled","Disabled","If this option is true, the protocol will not be configured. This protocol will connect the configured 'Table' to the 'Peer Table'.")
disabled.optional=false
disabled.default=0
interface=sect_direct_protos:option(Value,"interface","Interfaces","By default Direct will generate device routes for all the interfaces. To restrict this behaviour, select a number of patterns to match your desired interfaces:".."<br />".."1. All the strings <b>MUST</b> be quoted: \"pattern\"".."<br />".."2. Use * (star) to match patterns: \"eth*\" (<b>include</b> all eth... interfaces)".."<br />".."3. You can add \"-\" (minus) to exclude patterns: \"-em*\" (<b>exclude</b> all em... interfaces).".."<br />".."4. Separate several patterns using , (coma): \"-em*\", \"eth*\" (<b>exclude</b> em... and <b>include</b> all eth... interfaces).")