Skip to content

Commit

Permalink
gluon-simple-tc: initial.pl: sort keys before creating config
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils Schneider committed Oct 4, 2013
1 parent fd3e4e7 commit 79e2b81
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gluon/gluon-simple-tc/initial.pl
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
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";
}
}
Expand Down

0 comments on commit 79e2b81

Please sign in to comment.