summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-03-05 03:30:26 -0600
committerChris Buechler <cmb@pfsense.org>2016-03-05 03:30:26 -0600
commit6171add2b88ee735b0d24f6574d6475c8a369b38 (patch)
treecc41f1848ff30178a3104a43cd850178585bfc0f /src/etc
parent7c65816e7c70bbb36c5aab70498993428647ebe8 (diff)
downloadpfsense-6171add2b88ee735b0d24f6574d6475c8a369b38.zip
pfsense-6171add2b88ee735b0d24f6574d6475c8a369b38.tar.gz
After recreating the VLAN interface, run interface_configure on it if it's assigned and enabled. Ticket #5951
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/interfaces.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc
index 2929ca3..f08c50a 100644
--- a/src/etc/inc/interfaces.inc
+++ b/src/etc/inc/interfaces.inc
@@ -271,6 +271,14 @@ function interface_vlan_configure(&$vlan) {
/* invalidate interface cache */
get_interface_arr(true);
+ /* configure interface if assigned */
+ $assignedif = convert_real_interface_to_friendly_interface_name($vlanif);
+ if ($assignedif) {
+ if (isset($config['interfaces'][$assignedif]['enable'])) {
+ interface_configure($assignedif, true);
+ }
+ }
+
/* XXX: ermal -- for now leave it here at the moment it does not hurt. */
interfaces_bring_up($if);
OpenPOWER on IntegriCloud