X-Git-Url: http://git.openwrt.org/?p=feed%2Frouting.git;a=blobdiff_plain;f=bird-openwrt%2Fbird6-openwrt%2Fsrc%2Fmodel%2Foverview.lua;h=2b58a9d1171207ae2ecbfb9424dba115e8b47cab;hp=cb85b60f16f7bab25024d3cfff842bbd51f740c8;hb=7cb7b83325a35053913d10a0d54ca2a997ce444b;hpb=e35a8f9dc9e029fd76e571210b985ea33adf1364 diff --git a/bird-openwrt/bird6-openwrt/src/model/overview.lua b/bird-openwrt/bird6-openwrt/src/model/overview.lua index cb85b60..2b58a9d 100644 --- a/bird-openwrt/bird6-openwrt/src/model/overview.lua +++ b/bird-openwrt/bird6-openwrt/src/model/overview.lua @@ -1,6 +1,5 @@ --[[ -Copyright (C) 2014 - Eloi Carbó Solé (GSoC2014) -BGP/Bird integration with OpenWRT and QMP +Copyright (C) 2014-2017 - Eloi Carbo This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,7 +29,7 @@ s_bird_uci.addremove = False uuc = s_bird_uci:option(Flag, "use_UCI_config", "Use UCI configuration", "Use UCI configuration instead of the /etc/bird6.conf file") -ucf = s_bird_uci:option(Value, "UCI_config_File", "UCI File", "Specify the file to place the UCI-translated configuration") +ucf = s_bird_uci:option(Value, "UCI_config_file", "UCI File", "Specify the file to place the UCI-translated configuration") ucf.default = "/tmp/bird6.conf" -- Named Section: "table" @@ -79,9 +78,8 @@ listen_port.optional = true listen_dual = s_bird_global:option(Flag, "listen_bgp_dual", "BGP Dual/ipv6", "Set if BGP connections will listen ipv6 only 'ipv6only' or both ipv4/6 'dual' routes") listen_dual.optional = true - function m.on_commit(self,map) - luci.sys.call('/etc/init.d/bird6 stop; /etc/init.d/bird6 start') + luci.sys.exec('/etc/init.d/bird6 restart') end return m