Java 类org.projectfloodlight.openflow.protocol.OFCapabilities 实例源码

项目:fresco_floodlight    文件:SwitchSyncRepresentation.java   
/**
 * @param dpid
 * @param buffers
 * @param tables
 * @param capabilities
 * @param actions
 * @param ports
 * @param manufacturerDescription
 * @param hardwareDescription
 * @param softwareDescription
 * @param serialNumber
 * @param datapathDescription
 */
@JsonCreator
public SwitchSyncRepresentation(
        @JsonProperty("dpid") DatapathId dpid,
        @JsonProperty("buffers") int buffers,
        @JsonProperty("tables") byte tables,
        @JsonProperty("capabilities") Set<OFCapabilities> capabilities,
        @JsonProperty("actions") Set<OFActionType> actions,
        @JsonProperty("ports") List<SyncedPort> ports,
        @JsonProperty("manufacturerDescription") String manufacturerDescription,
        @JsonProperty("hardwareDescription") String hardwareDescription,
        @JsonProperty("softwareDescription") String softwareDescription,
        @JsonProperty("serialNumber") String serialNumber,
        @JsonProperty("datapathDescription") String datapathDescription) {
    this.dpid = dpid;
    this.buffers = buffers;
    this.tables = tables;
    this.capabilities = capabilities;
    this.actions = actions;
    this.ports = ports;
    this.manufacturerDescription = manufacturerDescription;
    this.hardwareDescription = hardwareDescription;
    this.softwareDescription = softwareDescription;
    this.serialNumber = serialNumber;
    this.datapathDescription = datapathDescription;
}
项目:iTAP-controller    文件:SwitchSyncRepresentation.java   
/**
 * @param dpid
 * @param buffers
 * @param tables
 * @param capabilities
 * @param actions
 * @param ports
 * @param manufacturerDescription
 * @param hardwareDescription
 * @param softwareDescription
 * @param serialNumber
 * @param datapathDescription
 */
@JsonCreator
public SwitchSyncRepresentation(
        @JsonProperty("dpid") DatapathId dpid,
        @JsonProperty("buffers") int buffers,
        @JsonProperty("tables") byte tables,
        @JsonProperty("capabilities") Set<OFCapabilities> capabilities,
        @JsonProperty("actions") Set<OFActionType> actions,
        @JsonProperty("ports") List<SyncedPort> ports,
        @JsonProperty("manufacturerDescription") String manufacturerDescription,
        @JsonProperty("hardwareDescription") String hardwareDescription,
        @JsonProperty("softwareDescription") String softwareDescription,
        @JsonProperty("serialNumber") String serialNumber,
        @JsonProperty("datapathDescription") String datapathDescription) {
    this.dpid = dpid;
    this.buffers = buffers;
    this.tables = tables;
    this.capabilities = capabilities;
    this.actions = actions;
    this.ports = ports;
    this.manufacturerDescription = manufacturerDescription;
    this.hardwareDescription = hardwareDescription;
    this.softwareDescription = softwareDescription;
    this.serialNumber = serialNumber;
    this.datapathDescription = datapathDescription;
}
项目:SDN-Multicast    文件:SwitchSyncRepresentation.java   
/**
 * @param dpid
 * @param buffers
 * @param tables
 * @param capabilities
 * @param actions
 * @param ports
 * @param manufacturerDescription
 * @param hardwareDescription
 * @param softwareDescription
 * @param serialNumber
 * @param datapathDescription
 */
@JsonCreator
public SwitchSyncRepresentation(
        @JsonProperty("dpid") DatapathId dpid,
        @JsonProperty("buffers") int buffers,
        @JsonProperty("tables") byte tables,
        @JsonProperty("capabilities") Set<OFCapabilities> capabilities,
        @JsonProperty("actions") Set<OFActionType> actions,
        @JsonProperty("ports") List<SyncedPort> ports,
        @JsonProperty("manufacturerDescription") String manufacturerDescription,
        @JsonProperty("hardwareDescription") String hardwareDescription,
        @JsonProperty("softwareDescription") String softwareDescription,
        @JsonProperty("serialNumber") String serialNumber,
        @JsonProperty("datapathDescription") String datapathDescription) {
    this.dpid = dpid;
    this.buffers = buffers;
    this.tables = tables;
    this.capabilities = capabilities;
    this.actions = actions;
    this.ports = ports;
    this.manufacturerDescription = manufacturerDescription;
    this.hardwareDescription = hardwareDescription;
    this.softwareDescription = softwareDescription;
    this.serialNumber = serialNumber;
    this.datapathDescription = datapathDescription;
}
项目:arscheduler    文件:SwitchSyncRepresentation.java   
/**
 * @param dpid
 * @param buffers
 * @param tables
 * @param capabilities
 * @param actions
 * @param ports
 * @param manufacturerDescription
 * @param hardwareDescription
 * @param softwareDescription
 * @param serialNumber
 * @param datapathDescription
 */
@JsonCreator
public SwitchSyncRepresentation(
        @JsonProperty("dpid") DatapathId dpid,
        @JsonProperty("buffers") int buffers,
        @JsonProperty("tables") byte tables,
        @JsonProperty("capabilities") Set<OFCapabilities> capabilities,
        @JsonProperty("actions") Set<OFActionType> actions,
        @JsonProperty("ports") List<SyncedPort> ports,
        @JsonProperty("manufacturerDescription") String manufacturerDescription,
        @JsonProperty("hardwareDescription") String hardwareDescription,
        @JsonProperty("softwareDescription") String softwareDescription,
        @JsonProperty("serialNumber") String serialNumber,
        @JsonProperty("datapathDescription") String datapathDescription) {
    this.dpid = dpid;
    this.buffers = buffers;
    this.tables = tables;
    this.capabilities = capabilities;
    this.actions = actions;
    this.ports = ports;
    this.manufacturerDescription = manufacturerDescription;
    this.hardwareDescription = hardwareDescription;
    this.softwareDescription = softwareDescription;
    this.serialNumber = serialNumber;
    this.datapathDescription = datapathDescription;
}
项目:floodlight1.2-delay    文件:SwitchSyncRepresentation.java   
/**
 * @param dpid
 * @param buffers
 * @param tables
 * @param capabilities
 * @param actions
 * @param ports
 * @param manufacturerDescription
 * @param hardwareDescription
 * @param softwareDescription
 * @param serialNumber
 * @param datapathDescription
 */
@JsonCreator
public SwitchSyncRepresentation(
        @JsonProperty("dpid") DatapathId dpid,
        @JsonProperty("buffers") int buffers,
        @JsonProperty("tables") byte tables,
        @JsonProperty("capabilities") Set<OFCapabilities> capabilities,
        @JsonProperty("actions") Set<OFActionType> actions,
        @JsonProperty("ports") List<SyncedPort> ports,
        @JsonProperty("manufacturerDescription") String manufacturerDescription,
        @JsonProperty("hardwareDescription") String hardwareDescription,
        @JsonProperty("softwareDescription") String softwareDescription,
        @JsonProperty("serialNumber") String serialNumber,
        @JsonProperty("datapathDescription") String datapathDescription) {
    this.dpid = dpid;
    this.buffers = buffers;
    this.tables = tables;
    this.capabilities = capabilities;
    this.actions = actions;
    this.ports = ports;
    this.manufacturerDescription = manufacturerDescription;
    this.hardwareDescription = hardwareDescription;
    this.softwareDescription = softwareDescription;
    this.serialNumber = serialNumber;
    this.datapathDescription = datapathDescription;
}
项目:floodlight-hardware    文件:SwitchSyncRepresentation.java   
/**
 * @param dpid
 * @param buffers
 * @param tables
 * @param capabilities
 * @param actions
 * @param ports
 * @param manufacturerDescription
 * @param hardwareDescription
 * @param softwareDescription
 * @param serialNumber
 * @param datapathDescription
 */
@JsonCreator
public SwitchSyncRepresentation(
        @JsonProperty("dpid") DatapathId dpid,
        @JsonProperty("buffers") int buffers,
        @JsonProperty("tables") byte tables,
        @JsonProperty("capabilities") Set<OFCapabilities> capabilities,
        @JsonProperty("actions") Set<OFActionType> actions,
        @JsonProperty("ports") List<SyncedPort> ports,
        @JsonProperty("manufacturerDescription") String manufacturerDescription,
        @JsonProperty("hardwareDescription") String hardwareDescription,
        @JsonProperty("softwareDescription") String softwareDescription,
        @JsonProperty("serialNumber") String serialNumber,
        @JsonProperty("datapathDescription") String datapathDescription) {
    this.dpid = dpid;
    this.buffers = buffers;
    this.tables = tables;
    this.capabilities = capabilities;
    this.actions = actions;
    this.ports = ports;
    this.manufacturerDescription = manufacturerDescription;
    this.hardwareDescription = hardwareDescription;
    this.softwareDescription = softwareDescription;
    this.serialNumber = serialNumber;
    this.datapathDescription = datapathDescription;
}
项目:ACAMPController    文件:SwitchSyncRepresentation.java   
/**
 * @param dpid
 * @param buffers
 * @param tables
 * @param capabilities
 * @param actions
 * @param ports
 * @param manufacturerDescription
 * @param hardwareDescription
 * @param softwareDescription
 * @param serialNumber
 * @param datapathDescription
 */
@JsonCreator
public SwitchSyncRepresentation(
        @JsonProperty("dpid") DatapathId dpid,
        @JsonProperty("buffers") int buffers,
        @JsonProperty("tables") byte tables,
        @JsonProperty("capabilities") Set<OFCapabilities> capabilities,
        @JsonProperty("actions") Set<OFActionType> actions,
        @JsonProperty("ports") List<SyncedPort> ports,
        @JsonProperty("manufacturerDescription") String manufacturerDescription,
        @JsonProperty("hardwareDescription") String hardwareDescription,
        @JsonProperty("softwareDescription") String softwareDescription,
        @JsonProperty("serialNumber") String serialNumber,
        @JsonProperty("datapathDescription") String datapathDescription) {
    this.dpid = dpid;
    this.buffers = buffers;
    this.tables = tables;
    this.capabilities = capabilities;
    this.actions = actions;
    this.ports = ports;
    this.manufacturerDescription = manufacturerDescription;
    this.hardwareDescription = hardwareDescription;
    this.softwareDescription = softwareDescription;
    this.serialNumber = serialNumber;
    this.datapathDescription = datapathDescription;
}
项目:fast-failover-demo    文件:SwitchSyncRepresentation.java   
/**
 * @param dpid
 * @param buffers
 * @param tables
 * @param capabilities
 * @param actions
 * @param ports
 * @param manufacturerDescription
 * @param hardwareDescription
 * @param softwareDescription
 * @param serialNumber
 * @param datapathDescription
 */
@JsonCreator
public SwitchSyncRepresentation(
        @JsonProperty("dpid") DatapathId dpid,
        @JsonProperty("buffers") int buffers,
        @JsonProperty("tables") byte tables,
        @JsonProperty("capabilities") Set<OFCapabilities> capabilities,
        @JsonProperty("actions") Set<OFActionType> actions,
        @JsonProperty("ports") List<SyncedPort> ports,
        @JsonProperty("manufacturerDescription") String manufacturerDescription,
        @JsonProperty("hardwareDescription") String hardwareDescription,
        @JsonProperty("softwareDescription") String softwareDescription,
        @JsonProperty("serialNumber") String serialNumber,
        @JsonProperty("datapathDescription") String datapathDescription) {
    this.dpid = dpid;
    this.buffers = buffers;
    this.tables = tables;
    this.capabilities = capabilities;
    this.actions = actions;
    this.ports = ports;
    this.manufacturerDescription = manufacturerDescription;
    this.hardwareDescription = hardwareDescription;
    this.softwareDescription = softwareDescription;
    this.serialNumber = serialNumber;
    this.datapathDescription = datapathDescription;
}
项目:floodlightLB    文件:SwitchSyncRepresentation.java   
/**
 * @param dpid
 * @param buffers
 * @param tables
 * @param capabilities
 * @param actions
 * @param ports
 * @param manufacturerDescription
 * @param hardwareDescription
 * @param softwareDescription
 * @param serialNumber
 * @param datapathDescription
 */
@JsonCreator
public SwitchSyncRepresentation(
        @JsonProperty("dpid") DatapathId dpid,
        @JsonProperty("buffers") int buffers,
        @JsonProperty("tables") byte tables,
        @JsonProperty("capabilities") Set<OFCapabilities> capabilities,
        @JsonProperty("actions") Set<OFActionType> actions,
        @JsonProperty("ports") List<SyncedPort> ports,
        @JsonProperty("manufacturerDescription") String manufacturerDescription,
        @JsonProperty("hardwareDescription") String hardwareDescription,
        @JsonProperty("softwareDescription") String softwareDescription,
        @JsonProperty("serialNumber") String serialNumber,
        @JsonProperty("datapathDescription") String datapathDescription) {
    this.dpid = dpid;
    this.buffers = buffers;
    this.tables = tables;
    this.capabilities = capabilities;
    this.actions = actions;
    this.ports = ports;
    this.manufacturerDescription = manufacturerDescription;
    this.hardwareDescription = hardwareDescription;
    this.softwareDescription = softwareDescription;
    this.serialNumber = serialNumber;
    this.datapathDescription = datapathDescription;
}
项目:DSC    文件:SwitchSyncRepresentation.java   
/**
 * @param dpid
 * @param buffers
 * @param tables
 * @param capabilities
 * @param actions
 * @param ports
 * @param manufacturerDescription
 * @param hardwareDescription
 * @param softwareDescription
 * @param serialNumber
 * @param datapathDescription
 */
@JsonCreator
public SwitchSyncRepresentation(
        @JsonProperty("dpid") DatapathId dpid,
        @JsonProperty("buffers") int buffers,
        @JsonProperty("tables") byte tables,
        @JsonProperty("capabilities") Set<OFCapabilities> capabilities,
        @JsonProperty("actions") Set<OFActionType> actions,
        @JsonProperty("ports") List<SyncedPort> ports,
        @JsonProperty("manufacturerDescription") String manufacturerDescription,
        @JsonProperty("hardwareDescription") String hardwareDescription,
        @JsonProperty("softwareDescription") String softwareDescription,
        @JsonProperty("serialNumber") String serialNumber,
        @JsonProperty("datapathDescription") String datapathDescription) {
    this.dpid = dpid;
    this.buffers = buffers;
    this.tables = tables;
    this.capabilities = capabilities;
    this.actions = actions;
    this.ports = ports;
    this.manufacturerDescription = manufacturerDescription;
    this.hardwareDescription = hardwareDescription;
    this.softwareDescription = softwareDescription;
    this.serialNumber = serialNumber;
    this.datapathDescription = datapathDescription;
}
项目:floodlight    文件:SwitchSyncRepresentation.java   
/**
 * @param dpid
 * @param buffers
 * @param tables
 * @param capabilities
 * @param actions
 * @param ports
 * @param manufacturerDescription
 * @param hardwareDescription
 * @param softwareDescription
 * @param serialNumber
 * @param datapathDescription
 */
@JsonCreator
public SwitchSyncRepresentation(
        @JsonProperty("dpid") DatapathId dpid,
        @JsonProperty("buffers") int buffers,
        @JsonProperty("tables") byte tables,
        @JsonProperty("capabilities") Set<OFCapabilities> capabilities,
        @JsonProperty("actions") Set<OFActionType> actions,
        @JsonProperty("ports") List<SyncedPort> ports,
        @JsonProperty("manufacturerDescription") String manufacturerDescription,
        @JsonProperty("hardwareDescription") String hardwareDescription,
        @JsonProperty("softwareDescription") String softwareDescription,
        @JsonProperty("serialNumber") String serialNumber,
        @JsonProperty("datapathDescription") String datapathDescription) {
    this.dpid = dpid;
    this.buffers = buffers;
    this.tables = tables;
    this.capabilities = capabilities;
    this.actions = actions;
    this.ports = ports;
    this.manufacturerDescription = manufacturerDescription;
    this.hardwareDescription = hardwareDescription;
    this.softwareDescription = softwareDescription;
    this.serialNumber = serialNumber;
    this.datapathDescription = datapathDescription;
}
项目:openflowj-otn    文件:OFCapabilitiesSerializerVer12.java   
public static Set<OFCapabilities> ofWireValue(int val) {
    EnumSet<OFCapabilities> set = EnumSet.noneOf(OFCapabilities.class);

    if((val & FLOW_STATS_VAL) != 0)
        set.add(OFCapabilities.FLOW_STATS);
    if((val & TABLE_STATS_VAL) != 0)
        set.add(OFCapabilities.TABLE_STATS);
    if((val & PORT_STATS_VAL) != 0)
        set.add(OFCapabilities.PORT_STATS);
    if((val & IP_REASM_VAL) != 0)
        set.add(OFCapabilities.IP_REASM);
    if((val & QUEUE_STATS_VAL) != 0)
        set.add(OFCapabilities.QUEUE_STATS);
    if((val & GROUP_STATS_VAL) != 0)
        set.add(OFCapabilities.GROUP_STATS);
    if((val & PORT_BLOCKED_VAL) != 0)
        set.add(OFCapabilities.PORT_BLOCKED);
    return Collections.unmodifiableSet(set);
}
项目:openflowj-otn    文件:OFCapabilitiesSerializerVer13.java   
public static Set<OFCapabilities> ofWireValue(int val) {
    EnumSet<OFCapabilities> set = EnumSet.noneOf(OFCapabilities.class);

    if((val & FLOW_STATS_VAL) != 0)
        set.add(OFCapabilities.FLOW_STATS);
    if((val & TABLE_STATS_VAL) != 0)
        set.add(OFCapabilities.TABLE_STATS);
    if((val & PORT_STATS_VAL) != 0)
        set.add(OFCapabilities.PORT_STATS);
    if((val & IP_REASM_VAL) != 0)
        set.add(OFCapabilities.IP_REASM);
    if((val & QUEUE_STATS_VAL) != 0)
        set.add(OFCapabilities.QUEUE_STATS);
    if((val & GROUP_STATS_VAL) != 0)
        set.add(OFCapabilities.GROUP_STATS);
    if((val & PORT_BLOCKED_VAL) != 0)
        set.add(OFCapabilities.PORT_BLOCKED);
    return Collections.unmodifiableSet(set);
}
项目:openflowj-otn    文件:OFCapabilitiesSerializerVer10.java   
public static Set<OFCapabilities> ofWireValue(int val) {
    EnumSet<OFCapabilities> set = EnumSet.noneOf(OFCapabilities.class);

    if((val & FLOW_STATS_VAL) != 0)
        set.add(OFCapabilities.FLOW_STATS);
    if((val & TABLE_STATS_VAL) != 0)
        set.add(OFCapabilities.TABLE_STATS);
    if((val & PORT_STATS_VAL) != 0)
        set.add(OFCapabilities.PORT_STATS);
    if((val & STP_VAL) != 0)
        set.add(OFCapabilities.STP);
    if((val & RESERVED_VAL) != 0)
        set.add(OFCapabilities.RESERVED);
    if((val & IP_REASM_VAL) != 0)
        set.add(OFCapabilities.IP_REASM);
    if((val & QUEUE_STATS_VAL) != 0)
        set.add(OFCapabilities.QUEUE_STATS);
    if((val & ARP_MATCH_IP_VAL) != 0)
        set.add(OFCapabilities.ARP_MATCH_IP);
    return Collections.unmodifiableSet(set);
}
项目:openflowj-otn    文件:OFCapabilitiesSerializerVer11.java   
public static Set<OFCapabilities> ofWireValue(int val) {
    EnumSet<OFCapabilities> set = EnumSet.noneOf(OFCapabilities.class);

    if((val & FLOW_STATS_VAL) != 0)
        set.add(OFCapabilities.FLOW_STATS);
    if((val & TABLE_STATS_VAL) != 0)
        set.add(OFCapabilities.TABLE_STATS);
    if((val & PORT_STATS_VAL) != 0)
        set.add(OFCapabilities.PORT_STATS);
    if((val & IP_REASM_VAL) != 0)
        set.add(OFCapabilities.IP_REASM);
    if((val & QUEUE_STATS_VAL) != 0)
        set.add(OFCapabilities.QUEUE_STATS);
    if((val & ARP_MATCH_IP_VAL) != 0)
        set.add(OFCapabilities.ARP_MATCH_IP);
    if((val & GROUP_STATS_VAL) != 0)
        set.add(OFCapabilities.GROUP_STATS);
    return Collections.unmodifiableSet(set);
}
项目:openflowj-otn    文件:OFCapabilitiesSerializerVer14.java   
public static Set<OFCapabilities> ofWireValue(int val) {
    EnumSet<OFCapabilities> set = EnumSet.noneOf(OFCapabilities.class);

    if((val & FLOW_STATS_VAL) != 0)
        set.add(OFCapabilities.FLOW_STATS);
    if((val & TABLE_STATS_VAL) != 0)
        set.add(OFCapabilities.TABLE_STATS);
    if((val & PORT_STATS_VAL) != 0)
        set.add(OFCapabilities.PORT_STATS);
    if((val & IP_REASM_VAL) != 0)
        set.add(OFCapabilities.IP_REASM);
    if((val & QUEUE_STATS_VAL) != 0)
        set.add(OFCapabilities.QUEUE_STATS);
    if((val & GROUP_STATS_VAL) != 0)
        set.add(OFCapabilities.GROUP_STATS);
    if((val & PORT_BLOCKED_VAL) != 0)
        set.add(OFCapabilities.PORT_BLOCKED);
    return Collections.unmodifiableSet(set);
}
项目:onos    文件:Ofdpa3SwitchHandshaker.java   
@Override
public void setFeaturesReply(OFFeaturesReply featuresReply) {

    OFFeaturesReply.Builder builder = featuresReply.createBuilder();

    // do not try to set PORTS or ACTIONS,
    // they are not supported for this openflow version
    builder.setAuxiliaryId(featuresReply.getAuxiliaryId());
    builder.setDatapathId(featuresReply.getDatapathId());
    builder.setNBuffers(featuresReply.getNBuffers());
    builder.setReserved(featuresReply.getReserved());
    builder.setXid(featuresReply.getXid());

    Set<OFCapabilities> capabilities = new HashSet<>(featuresReply.getCapabilities());
    capabilities.add(OFCapabilities.GROUP_STATS);
    builder.setCapabilities(capabilities);

    super.setFeaturesReply(builder.build());
}
项目:loxigen-artifacts    文件:OFCapabilitiesSerializerVer12.java   
public static Set<OFCapabilities> ofWireValue(int val) {
    EnumSet<OFCapabilities> set = EnumSet.noneOf(OFCapabilities.class);

    if((val & FLOW_STATS_VAL) != 0)
        set.add(OFCapabilities.FLOW_STATS);
    if((val & TABLE_STATS_VAL) != 0)
        set.add(OFCapabilities.TABLE_STATS);
    if((val & PORT_STATS_VAL) != 0)
        set.add(OFCapabilities.PORT_STATS);
    if((val & IP_REASM_VAL) != 0)
        set.add(OFCapabilities.IP_REASM);
    if((val & QUEUE_STATS_VAL) != 0)
        set.add(OFCapabilities.QUEUE_STATS);
    if((val & GROUP_STATS_VAL) != 0)
        set.add(OFCapabilities.GROUP_STATS);
    if((val & PORT_BLOCKED_VAL) != 0)
        set.add(OFCapabilities.PORT_BLOCKED);
    return Collections.unmodifiableSet(set);
}
项目:loxigen-artifacts    文件:OFCapabilitiesSerializerVer13.java   
public static Set<OFCapabilities> ofWireValue(int val) {
    EnumSet<OFCapabilities> set = EnumSet.noneOf(OFCapabilities.class);

    if((val & FLOW_STATS_VAL) != 0)
        set.add(OFCapabilities.FLOW_STATS);
    if((val & TABLE_STATS_VAL) != 0)
        set.add(OFCapabilities.TABLE_STATS);
    if((val & PORT_STATS_VAL) != 0)
        set.add(OFCapabilities.PORT_STATS);
    if((val & IP_REASM_VAL) != 0)
        set.add(OFCapabilities.IP_REASM);
    if((val & QUEUE_STATS_VAL) != 0)
        set.add(OFCapabilities.QUEUE_STATS);
    if((val & GROUP_STATS_VAL) != 0)
        set.add(OFCapabilities.GROUP_STATS);
    if((val & PORT_BLOCKED_VAL) != 0)
        set.add(OFCapabilities.PORT_BLOCKED);
    return Collections.unmodifiableSet(set);
}
项目:loxigen-artifacts    文件:OFCapabilitiesSerializerVer10.java   
public static Set<OFCapabilities> ofWireValue(int val) {
    EnumSet<OFCapabilities> set = EnumSet.noneOf(OFCapabilities.class);

    if((val & FLOW_STATS_VAL) != 0)
        set.add(OFCapabilities.FLOW_STATS);
    if((val & TABLE_STATS_VAL) != 0)
        set.add(OFCapabilities.TABLE_STATS);
    if((val & PORT_STATS_VAL) != 0)
        set.add(OFCapabilities.PORT_STATS);
    if((val & STP_VAL) != 0)
        set.add(OFCapabilities.STP);
    if((val & RESERVED_VAL) != 0)
        set.add(OFCapabilities.RESERVED);
    if((val & IP_REASM_VAL) != 0)
        set.add(OFCapabilities.IP_REASM);
    if((val & QUEUE_STATS_VAL) != 0)
        set.add(OFCapabilities.QUEUE_STATS);
    if((val & ARP_MATCH_IP_VAL) != 0)
        set.add(OFCapabilities.ARP_MATCH_IP);
    return Collections.unmodifiableSet(set);
}
项目:loxigen-artifacts    文件:OFCapabilitiesSerializerVer15.java   
public static Set<OFCapabilities> ofWireValue(int val) {
    EnumSet<OFCapabilities> set = EnumSet.noneOf(OFCapabilities.class);

    if((val & FLOW_STATS_VAL) != 0)
        set.add(OFCapabilities.FLOW_STATS);
    if((val & TABLE_STATS_VAL) != 0)
        set.add(OFCapabilities.TABLE_STATS);
    if((val & PORT_STATS_VAL) != 0)
        set.add(OFCapabilities.PORT_STATS);
    if((val & IP_REASM_VAL) != 0)
        set.add(OFCapabilities.IP_REASM);
    if((val & QUEUE_STATS_VAL) != 0)
        set.add(OFCapabilities.QUEUE_STATS);
    if((val & GROUP_STATS_VAL) != 0)
        set.add(OFCapabilities.GROUP_STATS);
    if((val & PORT_BLOCKED_VAL) != 0)
        set.add(OFCapabilities.PORT_BLOCKED);
    if((val & BUNDLES_VAL) != 0)
        set.add(OFCapabilities.BUNDLES);
    if((val & FLOW_MONITORING_VAL) != 0)
        set.add(OFCapabilities.FLOW_MONITORING);
    return Collections.unmodifiableSet(set);
}
项目:loxigen-artifacts    文件:OFCapabilitiesSerializerVer11.java   
public static Set<OFCapabilities> ofWireValue(int val) {
    EnumSet<OFCapabilities> set = EnumSet.noneOf(OFCapabilities.class);

    if((val & FLOW_STATS_VAL) != 0)
        set.add(OFCapabilities.FLOW_STATS);
    if((val & TABLE_STATS_VAL) != 0)
        set.add(OFCapabilities.TABLE_STATS);
    if((val & PORT_STATS_VAL) != 0)
        set.add(OFCapabilities.PORT_STATS);
    if((val & IP_REASM_VAL) != 0)
        set.add(OFCapabilities.IP_REASM);
    if((val & QUEUE_STATS_VAL) != 0)
        set.add(OFCapabilities.QUEUE_STATS);
    if((val & ARP_MATCH_IP_VAL) != 0)
        set.add(OFCapabilities.ARP_MATCH_IP);
    if((val & GROUP_STATS_VAL) != 0)
        set.add(OFCapabilities.GROUP_STATS);
    return Collections.unmodifiableSet(set);
}
项目:loxigen-artifacts    文件:OFCapabilitiesSerializerVer14.java   
public static Set<OFCapabilities> ofWireValue(int val) {
    EnumSet<OFCapabilities> set = EnumSet.noneOf(OFCapabilities.class);

    if((val & FLOW_STATS_VAL) != 0)
        set.add(OFCapabilities.FLOW_STATS);
    if((val & TABLE_STATS_VAL) != 0)
        set.add(OFCapabilities.TABLE_STATS);
    if((val & PORT_STATS_VAL) != 0)
        set.add(OFCapabilities.PORT_STATS);
    if((val & IP_REASM_VAL) != 0)
        set.add(OFCapabilities.IP_REASM);
    if((val & QUEUE_STATS_VAL) != 0)
        set.add(OFCapabilities.QUEUE_STATS);
    if((val & GROUP_STATS_VAL) != 0)
        set.add(OFCapabilities.GROUP_STATS);
    if((val & PORT_BLOCKED_VAL) != 0)
        set.add(OFCapabilities.PORT_BLOCKED);
    return Collections.unmodifiableSet(set);
}
项目:fresco_floodlight    文件:IOFSwitchSerializer.java   
public void serializeCapabilities(Set<OFCapabilities> ofCapabilities, JsonGenerator jGen)
        throws IOException, JsonProcessingException {
    if (null == ofCapabilities)
        jGen.writeStringField("capabilities","null");
    else{
        jGen.writeFieldName("capabilities");
        jGen.writeStartArray();
        for(OFCapabilities ofCapability : ofCapabilities){
            jGen.writeString(ofCapability.toString());
        }
        jGen.writeEndArray();
    }
}
项目:fresco_floodlight    文件:OFChannelHandlerVer13Test.java   
public void setUpFeaturesReply() {
    portDesc = factory.buildPortDesc()
            .setName("Eth1")
            .setPortNo(OFPort.of(1))
            .build();
    featuresReply = factory.buildFeaturesReply()
            .setDatapathId(dpid)
            .setNBuffers(1)
            .setNTables((short)1)
            .setCapabilities(EnumSet.<OFCapabilities>of(OFCapabilities.FLOW_STATS, OFCapabilities.TABLE_STATS))
            .setAuxiliaryId(OFAuxId.MAIN)
            .build();
}
项目:fresco_floodlight    文件:OFSwitchHandshakeHandlerVer13Test.java   
@Override
OFFeaturesReply getFeaturesReply() {
    return factory.buildFeaturesReply()
            .setDatapathId(dpid)
            .setNBuffers(1)
            .setNTables((short)1)
            .setCapabilities(EnumSet.<OFCapabilities>of(OFCapabilities.FLOW_STATS, OFCapabilities.TABLE_STATS))
            .setAuxiliaryId(OFAuxId.MAIN)
            .build();
}
项目:fresco_floodlight    文件:OFChannelHandlerVer10Test.java   
public void setUpFeaturesReply() {
   portDesc = factory.buildPortDesc()
            .setName("Eth1")
            .setPortNo(OFPort.of(1))
            .build();
    featuresReply = factory.buildFeaturesReply()
            .setDatapathId(DatapathId.of(0x42L))
            .setNBuffers(1)
            .setNTables((short)1)
            .setCapabilities(EnumSet.<OFCapabilities>of(OFCapabilities.FLOW_STATS, OFCapabilities.TABLE_STATS))
            .setActions(EnumSet.<OFActionType>of(OFActionType.SET_VLAN_PCP))
            .setPorts(ImmutableList.<OFPortDesc>of(portDesc))
            .build();
}
项目:fresco_floodlight    文件:OFSwitchHandshakeHandlerVer10Test.java   
@Override
OFFeaturesReply getFeaturesReply() {
    OFPortDesc portDesc = factory.buildPortDesc()
            .setName("Eth1")
            .setPortNo(OFPort.of(1))
            .build();
    return factory.buildFeaturesReply()
            .setDatapathId(dpid)
            .setNBuffers(1)
            .setNTables((short)1)
            .setCapabilities(EnumSet.<OFCapabilities>of(OFCapabilities.FLOW_STATS, OFCapabilities.TABLE_STATS))
            .setActions(EnumSet.<OFActionType>of(OFActionType.SET_VLAN_PCP))
            .setPorts(ImmutableList.<OFPortDesc>of(portDesc))
            .build();
}
项目:iTAP-controller    文件:IOFSwitchSerializer.java   
public void serializeCapabilities(Set<OFCapabilities> ofCapabilities, JsonGenerator jGen)
        throws IOException, JsonProcessingException {
    if (null == ofCapabilities)
        jGen.writeStringField("capabilities","null");
    else{
        jGen.writeFieldName("capabilities");
        jGen.writeStartArray();
        for(OFCapabilities ofCapability : ofCapabilities){
            jGen.writeString(ofCapability.toString());
        }
        jGen.writeEndArray();
    }
}
项目:iTAP-controller    文件:OFChannelHandlerVer13Test.java   
@Before
public void setUpFeaturesReply() {
    portDesc = factory.buildPortDesc()
            .setName("Eth1")
            .setPortNo(OFPort.of(1))
            .build();
    featuresReply = factory.buildFeaturesReply()
            .setDatapathId(dpid)
            .setNBuffers(1)
            .setNTables((short)1)
            .setCapabilities(EnumSet.<OFCapabilities>of(OFCapabilities.FLOW_STATS, OFCapabilities.TABLE_STATS))
            .setAuxiliaryId(OFAuxId.MAIN)
            .build();
}
项目:iTAP-controller    文件:OFSwitchHandshakeHandlerVer13Test.java   
@Override
OFFeaturesReply getFeaturesReply() {
    return factory.buildFeaturesReply()
            .setDatapathId(dpid)
            .setNBuffers(1)
            .setNTables((short)1)
            .setCapabilities(EnumSet.<OFCapabilities>of(OFCapabilities.FLOW_STATS, OFCapabilities.TABLE_STATS))
            .setAuxiliaryId(OFAuxId.MAIN)
            .build();
}
项目:iTAP-controller    文件:OFChannelHandlerVer10Test.java   
@Before
public void setUpFeaturesReply() {
   portDesc = factory.buildPortDesc()
            .setName("Eth1")
            .setPortNo(OFPort.of(1))
            .build();
    featuresReply = factory.buildFeaturesReply()
            .setDatapathId(DatapathId.of(0x42L))
            .setNBuffers(1)
            .setNTables((short)1)
            .setCapabilities(EnumSet.<OFCapabilities>of(OFCapabilities.FLOW_STATS, OFCapabilities.TABLE_STATS))
            .setActions(EnumSet.<OFActionType>of(OFActionType.SET_VLAN_PCP))
            .setPorts(ImmutableList.<OFPortDesc>of(portDesc))
            .build();
}
项目:iTAP-controller    文件:OFSwitchHandshakeHandlerVer10Test.java   
@Override
OFFeaturesReply getFeaturesReply() {
    OFPortDesc portDesc = factory.buildPortDesc()
            .setName("Eth1")
            .setPortNo(OFPort.of(1))
            .build();
    return factory.buildFeaturesReply()
            .setDatapathId(dpid)
            .setNBuffers(1)
            .setNTables((short)1)
            .setCapabilities(EnumSet.<OFCapabilities>of(OFCapabilities.FLOW_STATS, OFCapabilities.TABLE_STATS))
            .setActions(EnumSet.<OFActionType>of(OFActionType.SET_VLAN_PCP))
            .setPorts(ImmutableList.<OFPortDesc>of(portDesc))
            .build();
}
项目:SDN-Multicast    文件:IOFSwitchSerializer.java   
public void serializeCapabilities(Set<OFCapabilities> ofCapabilities, JsonGenerator jGen)
        throws IOException, JsonProcessingException {
    if (null == ofCapabilities)
        jGen.writeStringField("capabilities","null");
    else{
        jGen.writeFieldName("capabilities");
        jGen.writeStartArray();
        for(OFCapabilities ofCapability : ofCapabilities){
            jGen.writeString(ofCapability.toString());
        }
        jGen.writeEndArray();
    }
}
项目:SDN-Multicast    文件:OFChannelHandlerVer13Test.java   
public void setUpFeaturesReply() {
    portDesc = factory.buildPortDesc()
            .setName("Eth1")
            .setPortNo(OFPort.of(1))
            .build();
    featuresReply = factory.buildFeaturesReply()
            .setDatapathId(dpid)
            .setNBuffers(1)
            .setNTables((short)1)
            .setCapabilities(EnumSet.<OFCapabilities>of(OFCapabilities.FLOW_STATS, OFCapabilities.TABLE_STATS))
            .setAuxiliaryId(OFAuxId.MAIN)
            .build();
}
项目:SDN-Multicast    文件:OFSwitchHandshakeHandlerVer13Test.java   
@Override
OFFeaturesReply getFeaturesReply() {
    return factory.buildFeaturesReply()
            .setDatapathId(dpid)
            .setNBuffers(1)
            .setNTables((short)1)
            .setCapabilities(EnumSet.<OFCapabilities>of(OFCapabilities.FLOW_STATS, OFCapabilities.TABLE_STATS))
            .setAuxiliaryId(OFAuxId.MAIN)
            .build();
}
项目:SDN-Multicast    文件:OFChannelHandlerVer10Test.java   
public void setUpFeaturesReply() {
   portDesc = factory.buildPortDesc()
            .setName("Eth1")
            .setPortNo(OFPort.of(1))
            .build();
    featuresReply = factory.buildFeaturesReply()
            .setDatapathId(DatapathId.of(0x42L))
            .setNBuffers(1)
            .setNTables((short)1)
            .setCapabilities(EnumSet.<OFCapabilities>of(OFCapabilities.FLOW_STATS, OFCapabilities.TABLE_STATS))
            .setActions(EnumSet.<OFActionType>of(OFActionType.SET_VLAN_PCP))
            .setPorts(ImmutableList.<OFPortDesc>of(portDesc))
            .build();
}
项目:SDN-Multicast    文件:OFSwitchHandshakeHandlerVer10Test.java   
@Override
OFFeaturesReply getFeaturesReply() {
    OFPortDesc portDesc = factory.buildPortDesc()
            .setName("Eth1")
            .setPortNo(OFPort.of(1))
            .build();
    return factory.buildFeaturesReply()
            .setDatapathId(dpid)
            .setNBuffers(1)
            .setNTables((short)1)
            .setCapabilities(EnumSet.<OFCapabilities>of(OFCapabilities.FLOW_STATS, OFCapabilities.TABLE_STATS))
            .setActions(EnumSet.<OFActionType>of(OFActionType.SET_VLAN_PCP))
            .setPorts(ImmutableList.<OFPortDesc>of(portDesc))
            .build();
}
项目:arscheduler    文件:IOFSwitchSerializer.java   
public void serializeCapabilities(Set<OFCapabilities> ofCapabilities, JsonGenerator jGen)
        throws IOException, JsonProcessingException {
    if (null == ofCapabilities)
        jGen.writeStringField("capabilities","null");
    else{
        jGen.writeFieldName("capabilities");
        jGen.writeStartArray();
        for(OFCapabilities ofCapability : ofCapabilities){
            jGen.writeString(ofCapability.toString());
        }
        jGen.writeEndArray();
    }
}
项目:arscheduler    文件:OFChannelHandlerVer13Test.java   
public void setUpFeaturesReply() {
    portDesc = factory.buildPortDesc()
            .setName("Eth1")
            .setPortNo(OFPort.of(1))
            .build();
    featuresReply = factory.buildFeaturesReply()
            .setDatapathId(dpid)
            .setNBuffers(1)
            .setNTables((short)1)
            .setCapabilities(EnumSet.<OFCapabilities>of(OFCapabilities.FLOW_STATS, OFCapabilities.TABLE_STATS))
            .setAuxiliaryId(OFAuxId.MAIN)
            .build();
}