diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-02-17 14:17:07 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-02-17 14:17:55 -0600 |
commit | 376e8deb897f0df3a522ffc7ad0dfc6a9fde7fae (patch) | |
tree | 0877346dbc0100973867dd3ce6957bd5f40b4b6b /src/etc | |
parent | 5bf773af036ecae256bcd0ee046f305f6960401b (diff) | |
download | pfsense-376e8deb897f0df3a522ffc7ad0dfc6a9fde7fae.zip pfsense-376e8deb897f0df3a522ffc7ad0dfc6a9fde7fae.tar.gz |
Set bridgeif for new bridge creation.
Diffstat (limited to 'src/etc')
-rw-r--r-- | src/etc/inc/interfaces.inc | 5 |
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']); |