diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-02-11 03:35:07 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-02-11 03:35:07 +0000 |
commit | 98a0128cc11facb55499d7aea894e63329c63bd9 (patch) | |
tree | 167d6a94375df43438544a617f9af50bd3e6bdfa /usr/local/www | |
parent | 68a0e4fc14d838c0888dd0e9ab077ff7aabab7e9 (diff) | |
download | pfsense-98a0128cc11facb55499d7aea894e63329c63bd9.zip pfsense-98a0128cc11facb55499d7aea894e63329c63bd9.tar.gz |
MFC
Renumber interfaces after deleting. This is required for openvpn to function correctly.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/interfaces_assign.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php index b17a94a..e278892 100755 --- a/usr/local/www/interfaces_assign.php +++ b/usr/local/www/interfaces_assign.php @@ -140,7 +140,18 @@ if ($_GET['act'] == "del") { write_config(); + /* move all the interfaces up. for example: + * opt1 --> opt1 + * opt2 --> delete + * opt3 --> opt2 + * opt4 --> opt3 + */ + cleanup_opt_interfaces_after_removal($i); + + parse_config(true); + $savemsg = "Interface has been deleted."; + } if ($_GET['act'] == "add") { |