diff options
author | Ermal <eri@pfsense.org> | 2010-05-07 15:13:00 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-05-07 15:13:00 +0000 |
commit | 6cae2c4478ebd02676237674ffeb9f311d765b4e (patch) | |
tree | 57905613729bcc93fd2a3c5a1bd0cb287d18a180 /etc | |
parent | 2557738e29696a47577aa514b83972774c68cf38 (diff) | |
download | pfsense-6cae2c4478ebd02676237674ffeb9f311d765b4e.zip pfsense-6cae2c4478ebd02676237674ffeb9f311d765b4e.tar.gz |
Do not put ip address on teh name since pfctl does not like an ip as part of macro name.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/upgrade_config.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index 8305922..84c0c56 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -803,6 +803,7 @@ function upgrade_043_to_044() { /* migrate static routes to the new gateways config */ $gateways = return_gateways_array(true); + $i = 0; if (is_array($config['staticroutes']['route'])) { foreach ($config['staticroutes']['route'] as $idx => $sroute) { $found = false; @@ -815,7 +816,7 @@ function upgrade_043_to_044() { } if ($found == false) { $gateway = array(); - $gateway['name'] = "SROUTE{$sroute['gateway']}"; + $gateway['name'] = "SROUTE{$i}"; $gateway['gateway'] = $sroute['gateway']; $gateway['interface'] = $sroute['interface']; $gateway['descr'] = "Upgraded static route for {$sroute['network']}"; @@ -823,6 +824,7 @@ function upgrade_043_to_044() { $config['gateways']['gateway_item'] = array(); $config['gateways']['gateway_item'][] = $gateway; $config['staticroutes']['route'][$idx]['gateway'] = $gateway['name']; + $i++; } } } |