Tabnine Logo
ExternalNetworkDeviceManager$NetworkDevice.getNetworkDevice
Code IndexAdd Tabnine to your IDE (free)

How to use
getNetworkDevice
method
in
org.apache.cloudstack.network.ExternalNetworkDeviceManager$NetworkDevice

Best Java code snippets using org.apache.cloudstack.network.ExternalNetworkDeviceManager$NetworkDevice.getNetworkDevice (Showing top 10 results out of 315)

origin: apache/cloudstack

NetworkDevice networkDevice = NetworkDevice.getNetworkDevice(deviceName);
if (networkDevice == null) {
  throw new CloudRuntimeException("No network device found for name " + deviceName);
origin: apache/cloudstack

String guid;
PhysicalNetworkVO pNetwork = null;
NetworkDevice ntwkDevice = NetworkDevice.getNetworkDevice(deviceName);
long zoneId;
origin: apache/cloudstack

final NetworkDevice ntwkDevice = NetworkDevice.getNetworkDevice(deviceName);
long zoneId;
origin: apache/cloudstack

final NuageVspResource resource = new NuageVspResource();
final String deviceName = Network.Provider.NuageVsp.getName();
ExternalNetworkDeviceManager.NetworkDevice networkDevice = ExternalNetworkDeviceManager.NetworkDevice.getNetworkDevice(deviceName);
final Long physicalNetworkId = cmd.getPhysicalNetworkId();
PhysicalNetworkVO physicalNetwork = _physicalNetworkDao.findById(physicalNetworkId);
origin: apache/cloudstack

NuageVspResource resource = new NuageVspResource();
final String deviceName = Network.Provider.NuageVsp.getName();
ExternalNetworkDeviceManager.NetworkDevice networkDevice = ExternalNetworkDeviceManager.NetworkDevice.getNetworkDevice(deviceName);
final Long physicalNetworkId = command.getPhysicalNetworkId();
PhysicalNetworkVO physicalNetwork = _physicalNetworkDao.findById(physicalNetworkId);
origin: apache/cloudstack

NetworkDevice networkDevice = NetworkDevice.getNetworkDevice(deviceName);
final Long physicalNetworkId = cmd.getPhysicalNetworkId();
final String hostname = cmd.getHost();
origin: apache/cloudstack

ServerResource resource = new NiciraNvpResource();
final String deviceName = Network.Provider.NiciraNvp.getName();
NetworkDevice networkDevice = NetworkDevice.getNetworkDevice(deviceName);
if (networkDevice == null) {
  throw new CloudRuntimeException("No network device found for " + deviceName);
origin: apache/cloudstack

ServerResource resource = new BrocadeVcsResource();
final String deviceName = Network.Provider.BrocadeVcs.getName();
NetworkDevice networkDevice = NetworkDevice.getNetworkDevice(deviceName);
if (networkDevice == null) {
  throw new CloudRuntimeException("No network device found for " + deviceName);
origin: apache/cloudstack

@Override
public List<Host> listExternalLoadBalancers(long physicalNetworkId, String deviceName) {
  List<Host> lbHosts = new ArrayList<Host>();
  NetworkDevice lbNetworkDevice = NetworkDevice.getNetworkDevice(deviceName);
  PhysicalNetworkVO pNetwork = null;
  pNetwork = _physicalNetworkDao.findById(physicalNetworkId);
  if ((pNetwork == null) || (lbNetworkDevice == null)) {
    throw new InvalidParameterValueException("Atleast one of the required parameter physical networkId, device name is invalid.");
  }
  PhysicalNetworkServiceProviderVO ntwkSvcProvider =
    _physicalNetworkServiceProviderDao.findByServiceProvider(pNetwork.getId(), lbNetworkDevice.getNetworkServiceProvder());
  // if provider not configured in to physical network, then there can be no instances
  if (ntwkSvcProvider == null) {
    return null;
  }
  List<ExternalLoadBalancerDeviceVO> lbDevices =
    _externalLoadBalancerDeviceDao.listByPhysicalNetworkAndProvider(physicalNetworkId, ntwkSvcProvider.getProviderName());
  for (ExternalLoadBalancerDeviceVO provderInstance : lbDevices) {
    lbHosts.add(_hostDao.findById(provderInstance.getHostId()));
  }
  return lbHosts;
}
origin: apache/cloudstack

@Override
public List<Host> listExternalFirewalls(long physicalNetworkId, String deviceName) {
  List<Host> firewallHosts = new ArrayList<Host>();
  NetworkDevice fwNetworkDevice = NetworkDevice.getNetworkDevice(deviceName);
  PhysicalNetworkVO pNetwork = null;
  pNetwork = _physicalNetworkDao.findById(physicalNetworkId);
  if (pNetwork == null) {
    throw new InvalidParameterValueException("Could not find phyical network with ID: " + physicalNetworkId);
  }
  if ((pNetwork == null) || (fwNetworkDevice == null)) {
    throw new InvalidParameterValueException("Atleast one of ther required parameter physical networkId, device name is missing or invalid.");
  }
  PhysicalNetworkServiceProviderVO ntwkSvcProvider =
    _physicalNetworkServiceProviderDao.findByServiceProvider(pNetwork.getId(), fwNetworkDevice.getNetworkServiceProvder());
  if (ntwkSvcProvider == null) {
    return null;
  }
  List<ExternalFirewallDeviceVO> fwDevices = _externalFirewallDeviceDao.listByPhysicalNetworkAndProvider(physicalNetworkId, ntwkSvcProvider.getProviderName());
  for (ExternalFirewallDeviceVO fwDevice : fwDevices) {
    firewallHosts.add(_hostDao.findById(fwDevice.getHostId()));
  }
  return firewallHosts;
}
org.apache.cloudstack.networkExternalNetworkDeviceManager$NetworkDevicegetNetworkDevice

Popular methods of ExternalNetworkDeviceManager$NetworkDevice

  • getName
  • getNetworkServiceProvder

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
  • setScale (BigDecimal)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • JCheckBox (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now