]> git.ipfire.org Git - network.git/commitdiff
routing: Fix creating of routing tables for uplinks.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Jun 2012 22:32:51 +0000 (22:32 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Jun 2012 22:32:51 +0000 (22:32 +0000)
functions.routing

index fec1a5141ea41e288a4430f1a43ee267869b72fb..111f7baf58a509de3319817c097e802ae4a108b1 100644 (file)
@@ -118,7 +118,7 @@ function routing_table_create() {
 
        log INFO "Creating routing table for zone '${zone}'"
 
-       local id=$(( ${zone#red} + 1 ))
+       local id=$(( ${zone#${ZONE_NONLOCAL}} + 1 ))
 
        echo "${id}     ${zone}" >> /etc/iproute2/rt_tables
 }