Skip to content
Snippets Groups Projects
Commit de633e9b authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-simple-tc: change type of the enabled option in the site config to boolean

parent ce377554
No related branches found
No related tags found
No related merge requests found
...@@ -7,9 +7,16 @@ local c = uci.cursor() ...@@ -7,9 +7,16 @@ local c = uci.cursor()
for name, config in pairs(site.simple_tc) do for name, config in pairs(site.simple_tc) do
if not c:get('gluon-simple-tc', name) then if not c:get('gluon-simple-tc', name) then
c:section('gluon-simple-tc', 'interface', name, config) c:section('gluon-simple-tc', 'interface', name,
end {
ifname = config.ifname,
enabled = config.enabled and 1 or 0,
limit_egress = config.limit_egress,
limit_ingress = config.limit_ingress,
}
)
end
end end
c:save('gluon-simple-tc') c:save('gluon-simple-tc')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment