mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
network-refactor merge: fix nonoss build
Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>
This commit is contained in:
parent
e45a9f3aed
commit
ce4b49d30b
@ -247,4 +247,6 @@ public interface NetworkModel {
|
||||
|
||||
PublicIpAddress getSourceNatIpAddressForGuestNetwork(Account owner, Network guestNetwork);
|
||||
|
||||
boolean isNetworkInlineMode(Network network);
|
||||
|
||||
}
|
||||
@ -1830,4 +1830,10 @@ public class NetworkModelImpl implements NetworkModel, Manager{
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean isNetworkInlineMode(Network network) {
|
||||
NetworkOfferingVO offering = _networkOfferingDao.findById(network.getNetworkOfferingId());
|
||||
return offering.isInline();
|
||||
}
|
||||
|
||||
}
|
||||
@ -797,4 +797,13 @@ public class MockNetworkModelImpl implements NetworkModel, Manager {
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user