Search in sources :

Example 1 with HostConfigManager

use of com.vmware.vim25.HostConfigManager in project CloudStack-archive by CloudStack-extras.

the class HostMO method getHostFirewallSystemMO.

public HostFirewallSystemMO getHostFirewallSystemMO() throws Exception {
    HostConfigManager configMgr = getHostConfigManager();
    ManagedObjectReference morFirewall = configMgr.getFirewallSystem();
    // only ESX hosts have firewall manager
    if (morFirewall != null)
        return new HostFirewallSystemMO(_context, morFirewall);
    return null;
}
Also used : HostConfigManager(com.vmware.vim25.HostConfigManager) ManagedObjectReference(com.vmware.vim25.ManagedObjectReference)

Example 2 with HostConfigManager

use of com.vmware.vim25.HostConfigManager in project cloudstack by apache.

the class HostMO method getHostFirewallSystemMO.

public HostFirewallSystemMO getHostFirewallSystemMO() throws Exception {
    HostConfigManager configMgr = getHostConfigManager();
    ManagedObjectReference morFirewall = configMgr.getFirewallSystem();
    // only ESX hosts have firewall manager
    if (morFirewall != null)
        return new HostFirewallSystemMO(_context, morFirewall);
    return null;
}
Also used : HostConfigManager(com.vmware.vim25.HostConfigManager) ManagedObjectReference(com.vmware.vim25.ManagedObjectReference)

Aggregations

HostConfigManager (com.vmware.vim25.HostConfigManager)2 ManagedObjectReference (com.vmware.vim25.ManagedObjectReference)2