Ejemplo n.º 1
0
  private Object newParamsConfigureStatus(String interfaceName, OperationalStatus status) {

    LogicalPort logicalPort = new LogicalPort();
    logicalPort.setName(interfaceName);
    logicalPort.setOperationalStatus(status);
    return logicalPort;
  }
Ejemplo n.º 2
0
  private void checkOperationalStatus(
      ComputerSystem model, String interfaceName, OperationalStatus status) {
    LogicalPort port = null;
    try {
      LogicalDevice port1 = getLogicalDevice(interfaceName, model);
      if (port1 instanceof LogicalPort) port = (LogicalPort) port1;
    } catch (Exception e) {
    }

    if (port == null) Assert.fail("Interface not found in model");
    Assert.assertTrue(port.getOperatingStatus().equals(status));
  }
 private LogicalPort addVlanToIface(LogicalPort iface, int vlanId) {
   VLANEndpoint vlan = new VLANEndpoint();
   vlan.setName(String.valueOf(vlanId)); // it's read from here
   vlan.setVlanID(vlanId);
   iface.addProtocolEndpoint(vlan);
   return iface;
 }
Ejemplo n.º 4
0
 private LogicalPort prepareConfigureStatusParams(String nameInterface) {
   LogicalPort logicalPort = new LogicalPort();
   logicalPort.setName(nameInterface);
   return logicalPort;
 }
Ejemplo n.º 5
0
 public static LogicalPort getLogicalPort() {
   LogicalPort logicalPort = new LogicalPort();
   logicalPort.setName("fe-0/3/2");
   logicalPort.setDescription("Description for the setSubInterfaceDescription test");
   return logicalPort;
 }
 private LogicalPort createPhysicalInterface(String ifaceName) {
   LogicalPort iface = new LogicalPort();
   iface.setName(ifaceName);
   return iface;
 }