Summary: Allow public and private nic to be the same bridge

Detail: There was a regression in functionality introduced by
915babd970 where the public
bridge could not also be the private bridge. This had several
additional consequences, this patch should revert the behavior
back while keeping the functionality enhancements introduced by that
commit.

BUG-ID : NONE
Reviewed-by: Dave Cahill
Reported-by: Dave Cahill via cloudstack-dev
Signed-off-by: Marcus Sorensen <shadowsor@gmail.com> 1351574006 -0600
This commit is contained in:
marcus 2012-10-29 23:13:26 -06:00
parent c916d6a1f1
commit 843e140858
1 changed files with 2 additions and 1 deletions

View File

@ -788,7 +788,8 @@ public class LibvirtComputingResource extends ServerResourceBase implements
String pif = getPif(bridge);
if(_publicBridgeName != null && bridge.equals(_publicBridgeName)){
_pifs.put("public", pif);
} else if (_guestBridgeName != null) {
}
if (_guestBridgeName != null && bridge.equals(_guestBridgeName)) {
_pifs.put("private", pif);
}
_pifs.put(bridge, pif);