Examples of ArrayOfHostIpRouteEntry


Examples of com.vmware.vim25.ArrayOfHostIpRouteEntry

  @Override
  public String getHyperHostDefaultGateway() throws Exception {
    ObjectContent[] ocs = getHostPropertiesOnCluster(new String[] {"config.network.routeTableInfo.ipRoute"});
    if(ocs != null && ocs.length > 0) {
      for(ObjectContent oc : ocs) {
        ArrayOfHostIpRouteEntry entries = (ArrayOfHostIpRouteEntry)oc.getPropSet().get(0).getVal();
        if(entries != null) {
          for(HostIpRouteEntry entry : entries.getHostIpRouteEntry()) {
            if(entry.getNetwork().equalsIgnoreCase("0.0.0.0"))
              return entry.getGateway();
          }
        }
      }
View Full Code Here

Examples of com.vmware.vim25.ArrayOfHostIpRouteEntry

    @Override
    public String getHyperHostDefaultGateway() throws Exception {
        ObjectContent[] ocs = getHostPropertiesOnCluster(new String[] {"config.network.routeTableInfo.ipRoute"});
        if (ocs != null && ocs.length > 0) {
            for (ObjectContent oc : ocs) {
                ArrayOfHostIpRouteEntry entries = (ArrayOfHostIpRouteEntry)oc.getPropSet().get(0).getVal();
                if (entries != null) {
                    for (HostIpRouteEntry entry : entries.getHostIpRouteEntry()) {
                        if (entry.getNetwork().equalsIgnoreCase("0.0.0.0"))
                            return entry.getGateway();
                    }
                }
            }
View Full Code Here

Examples of com.vmware.vim25.ArrayOfHostIpRouteEntry

  @Override
  public String getHyperHostDefaultGateway() throws Exception {
    ObjectContent[] ocs = getHostPropertiesOnCluster(new String[] {"config.network.routeTableInfo.ipRoute"});
    if(ocs != null && ocs.length > 0) {
      for(ObjectContent oc : ocs) {
        ArrayOfHostIpRouteEntry entries = (ArrayOfHostIpRouteEntry)oc.getPropSet().get(0).getVal();
        if(entries != null) {
          for(HostIpRouteEntry entry : entries.getHostIpRouteEntry()) {
            if(entry.getNetwork().equalsIgnoreCase("0.0.0.0"))
              return entry.getGateway();
          }
        }
      }
View Full Code Here

Examples of com.vmware.vim25.ArrayOfHostIpRouteEntry

  @Override
  public String getHyperHostDefaultGateway() throws Exception {
    ObjectContent[] ocs = getHostPropertiesOnCluster(new String[] {"config.network.routeTableInfo.ipRoute"});
    if(ocs != null && ocs.length > 0) {
      for(ObjectContent oc : ocs) {
        ArrayOfHostIpRouteEntry entries = (ArrayOfHostIpRouteEntry)oc.getPropSet(0).getVal();
        if(entries != null) {
          for(HostIpRouteEntry entry : entries.getHostIpRouteEntry()) {
            if(entry.getNetwork().equalsIgnoreCase("0.0.0.0"))
              return entry.getGateway();
          }
        }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.