bird-openwrt: BIRD daemon integration with UCI and LuCI configuration
[feed/routing.git] / bird-openwrt / bird6-openwrt / src / config / bird6
diff --git a/bird-openwrt/bird6-openwrt/src/config/bird6 b/bird-openwrt/bird6-openwrt/src/config/bird6
new file mode 100644 (file)
index 0000000..1807df7
--- /dev/null
@@ -0,0 +1,86 @@
+config bird 'bird'
+    option use_UCI_config '1'
+        #Caution! Enabling this option, Bird will translate this
+        #UCI file and use it instead of /etc/bird6.conf
+
+    option UCI_config_file '/tmp/bird6.conf'
+        #If you enable useUCIconfig, UCIconfigFile will be Bird's
+        #configuration file location.
+
+config global 'global'
+    option log_file '/tmp/bird6.log'
+    option log 'all'
+    option debug 'off'
+    option router_id 'fc00::1:5'
+    option listen_bgp_addr 'fc00::1:5'
+    option listen_bgp_port '179'
+    option listen_bgp_dual '1'
+
+config table
+    option name 'aux'
+
+config kernel kernel1
+    option table 'aux'
+    option import 'all'
+    option export 'all'
+    option kernel_table '100'
+    option scan_time '10'
+    option learn '1'
+    option persist '0'
+    option disabled '0'
+
+config device device1
+    option scan_time '10'
+    option disabled '0'
+
+config static static1
+    option table 'aux'
+    option disabled '0'
+
+config bgp bgp1
+    option template 'bgp_common'
+    option description 'Description of the BGP instance'
+    option neighbor_address 'fc00::1:5'
+    option neighbor_as '65530'
+    option next_hop_self '0'
+    option next_hop_keep '0'
+    option rr_client '1'
+    option rr_cluster_id 'fc00::1:5'
+
+config bgp_template bgp_common
+    option table 'aux'
+    option import 'all'
+    option export 'all'
+    option local_address '2001:B30:1000:19::2'
+    option local_as '65001'
+    option import_limit '100'
+    option import_limit_action 'warn'
+    option export_limit '100'
+    option export_limit_action 'warn'
+    option receive_limit '100'
+    option receive_limit_action 'warn'
+    option disabled '0'
+
+config route
+    option instance 'static1'
+    option type 'router'
+    option prefix '2001:db8:0:f103::/64'
+    option via 'fe80::225:90ff:fe97:a718'
+
+config route
+    option instance 'static1'
+    option type 'special'
+    option prefix '2001:db8:0:f101::/128'
+    option attribute 'unreachable'
+
+config route
+    option instance 'static1'
+    option type 'iface'
+    option prefix '2001:db8:0:f101::1111/128'
+    option iface 'eth0'
+
+config filter 'firstFilter'
+    option type 'bgp'
+    option instance 'bgp1'
+    option file_path '/var/filters/f1'
+