Skip to content
Snippets Groups Projects
Commit 9b69ac28 authored by Nils Schneider's avatar Nils Schneider
Browse files

gluon-simple-tc: initial.pl: sort keys before creating config

parent 75ac64ca
No related branches found
No related tags found
No related merge requests found
......@@ -6,10 +6,12 @@ print <<'END';
uci -q batch <<EOF
END
while (($name, $interface) = each %{$cfg}) {
foreach my $name (sort keys %{$cfg}) {
my $interface = $cfg->{$name};
print "set gluon-simple-tc.$name=interface\n";
for (qw(ifname enabled limit_egress limit_ingress)) {
for (qw(enabled ifname limit_egress limit_ingress)) {
print "set gluon-simple-tc.$name.$_=$interface->{$_}\n";
}
}
......
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