network-refactor merge: fix nonoss build

Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>
This commit is contained in:
Chiradeep Vittal 2013-01-18 09:37:34 -08:00
parent e45a9f3aed
commit ce4b49d30b
3 changed files with 17 additions and 0 deletions

View File

@ -247,4 +247,6 @@ public interface NetworkModel {
PublicIpAddress getSourceNatIpAddressForGuestNetwork(Account owner, Network guestNetwork); PublicIpAddress getSourceNatIpAddressForGuestNetwork(Account owner, Network guestNetwork);
boolean isNetworkInlineMode(Network network);
} }

View File

@ -1830,4 +1830,10 @@ public class NetworkModelImpl implements NetworkModel, Manager{
return null; return null;
} }
public boolean isNetworkInlineMode(Network network) {
NetworkOfferingVO offering = _networkOfferingDao.findById(network.getNetworkOfferingId());
return offering.isInline();
}
} }

View File

@ -797,4 +797,13 @@ public class MockNetworkModelImpl implements NetworkModel, Manager {
return null; return null;
} }
/* (non-Javadoc)
* @see com.cloud.network.NetworkModel#isNetworkInlineMode(com.cloud.network.Network)
*/
@Override
public boolean isNetworkInlineMode(Network network) {
// TODO Auto-generated method stub
return false;
}
} }