From 98a0128cc11facb55499d7aea894e63329c63bd9 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 11 Feb 2006 03:35:07 +0000 Subject: MFC Renumber interfaces after deleting. This is required for openvpn to function correctly. --- usr/local/www/interfaces_assign.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'usr/local/www') 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") { -- cgit v1.1