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 75ac64ca20
commit 9b69ac2845

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