summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-02-17 14:17:07 -0600
committerChris Buechler <cmb@pfsense.org>2016-02-17 14:17:55 -0600
commit376e8deb897f0df3a522ffc7ad0dfc6a9fde7fae (patch)
tree0877346dbc0100973867dd3ce6957bd5f40b4b6b /src/etc
parent5bf773af036ecae256bcd0ee046f305f6960401b (diff)
downloadpfsense-376e8deb897f0df3a522ffc7ad0dfc6a9fde7fae.zip
pfsense-376e8deb897f0df3a522ffc7ad0dfc6a9fde7fae.tar.gz
Set bridgeif for new bridge creation.
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/interfaces.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc
index 002e518..8b498bc 100644
--- a/src/etc/inc/interfaces.inc
+++ b/src/etc/inc/interfaces.inc
@@ -524,6 +524,11 @@ function interface_bridge_configure(&$bridge, $checkmember = 0) {
pfSense_interface_destroy($bridge['bridgeif']);
pfSense_interface_create($bridge['bridgeif']);
$bridgeif = escapeshellarg($bridge['bridgeif']);
+ } else {
+ // if called directly, as interfaces_bridge_edit.php does, and bridgeif isn't set
+ // normally set by interfaces_bridge_configure, but not upon creation of new bridge
+ $bridgeif = pfSense_interface_create("bridge");
+ $bridge['bridgeif'] = $bridgeif;
}
$bridgemtu = interface_find_child_cfgmtu($bridge['bridgeif']);
OpenPOWER on IntegriCloud