Examples of OFPortMod


Examples of org.openflow.protocol.OFPortMod

        }

        updatedPort.setConfig(0);

        OFPortMod portMod = new OFPortMod();

        if (updateStatus.equals("down")) {
          portMod.setConfig(OFPhysicalPort.OFPortConfig.OFPPC_PORT_DOWN
              .getValue());
        } else if (updateStatus.equals("up")) {
          portMod.setConfig(0);
        }

        portMod.setMask(1);
        portMod.setPortNumber(updatedPort.getPortNumber());
        portMod.setHardwareAddress(updatedPort.getHardwareAddress());
        portMod.setType(OFType.PORT_MOD);

        sw.getOutputStream().write(portMod);
        sw.getOutputStream().flush();
        obj = new JSONObject();
        obj.put("result", "success");
View Full Code Here

Examples of org.openflow.protocol.OFPortMod

      }

      updatedPort.setConfig(0);

      OFPortMod portMod = new OFPortMod();

     
        portMod.setConfig(OFPhysicalPort.OFPortConfig.OFPPC_PORT_DOWN
            .getValue());
   

      portMod.setMask(1);
      portMod.setPortNumber(updatedPort.getPortNumber());
      portMod.setHardwareAddress(updatedPort.getHardwareAddress());
      portMod.setType(OFType.PORT_MOD);

      sw.getOutputStream().write(portMod);
      sw.getOutputStream().flush();
      ci.print("done");
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.