Skip to content

Commit ce4b49d

Browse files
committed
network-refactor merge: fix nonoss build
Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>
1 parent e45a9f3 commit ce4b49d

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

api/src/com/cloud/network/NetworkModel.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,5 +246,7 @@ Map<PublicIpAddress, Set<Service>> getIpToServices(List<? extends PublicIpAddres
246246
String getDomainNetworkDomain(long domainId, long zoneId);
247247

248248
PublicIpAddress getSourceNatIpAddressForGuestNetwork(Account owner, Network guestNetwork);
249+
250+
boolean isNetworkInlineMode(Network network);
249251

250252
}

server/src/com/cloud/network/NetworkModelImpl.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1830,4 +1830,10 @@ public PublicIpAddress getSourceNatIpAddressForGuestNetwork(Account owner, Netwo
18301830

18311831
return null;
18321832
}
1833+
1834+
public boolean isNetworkInlineMode(Network network) {
1835+
NetworkOfferingVO offering = _networkOfferingDao.findById(network.getNetworkOfferingId());
1836+
return offering.isInline();
1837+
}
1838+
18331839
}

server/test/com/cloud/network/MockNetworkModelImpl.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,4 +797,13 @@ public PublicIpAddress getSourceNatIpAddressForGuestNetwork(Account owner, Netwo
797797
return null;
798798
}
799799

800+
/* (non-Javadoc)
801+
* @see com.cloud.network.NetworkModel#isNetworkInlineMode(com.cloud.network.Network)
802+
*/
803+
@Override
804+
public boolean isNetworkInlineMode(Network network) {
805+
// TODO Auto-generated method stub
806+
return false;
807+
}
808+
800809
}

0 commit comments

Comments
 (0)