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

This commit is contained in:
Nils Schneider 2013-10-04 10:47:31 +02:00
parent fd3e4e7b70
commit 79e2b81232
1 changed files with 4 additions and 2 deletions

View File

@ -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";
}
}