当前位置: 首页>>代码示例>>Java>>正文


Java OfdpaSetVlanVid类代码示例

本文整理汇总了Java中org.onosproject.driver.extensions.OfdpaSetVlanVid的典型用法代码示例。如果您正苦于以下问题:Java OfdpaSetVlanVid类的具体用法?Java OfdpaSetVlanVid怎么用?Java OfdpaSetVlanVid使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


OfdpaSetVlanVid类属于org.onosproject.driver.extensions包,在下文中一共展示了OfdpaSetVlanVid类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: activate

import org.onosproject.driver.extensions.OfdpaSetVlanVid; //导入依赖的package包/类
@Activate
public void activate() {
    codecService.registerCodec(MoveExtensionTreatment.class, new MoveExtensionTreatmentCodec());
    codecService.registerCodec(NiciraMatchNshSi.class, new NiciraMatchNshSiCodec());
    codecService.registerCodec(NiciraMatchNshSpi.class, new NiciraMatchNshSpiCodec());
    codecService.registerCodec(NiciraResubmit.class, new NiciraResubmitCodec());
    codecService.registerCodec(NiciraResubmitTable.class, new NiciraResubmitTableCodec());
    codecService.registerCodec(NiciraSetNshSi.class, new NiciraSetNshSiCodec());
    codecService.registerCodec(NiciraSetNshSpi.class, new NiciraSetNshSpiCodec());
    codecService.registerCodec(NiciraSetTunnelDst.class, new NiciraSetTunnelDstCodec());
    codecService.registerCodec(NiciraSetNshContextHeader.class, new NiciraSetNshContextHeaderCodec());
    codecService.registerCodec(OfdpaMatchVlanVid.class, new OfdpaMatchVlanVidCodec());
    codecService.registerCodec(OfdpaSetVlanVid.class, new OfdpaSetVlanVidCodec());
    codecService.registerCodec(Ofdpa3SetMplsType.class, new Ofdpa3SetMplsTypeCodec());
    codecService.registerCodec(Ofdpa3MatchOvid.class, new Ofdpa3MatchOvidCodec());
    codecService.registerCodec(Ofdpa3SetOvid.class, new Ofdpa3SetOvidCodec());
    codecService.registerCodec(Ofdpa3SetQosIndex.class, new Ofdpa3SetQosIndexCodec());
    codecService.registerCodec(Ofdpa3MatchMplsL2Port.class, new Ofdpa3MatchMplsL2PortCodec());
    codecService.registerCodec(Ofdpa3SetMplsL2Port.class, new Ofdpa3SetMplsL2PortCodec());
    codecService.registerCodec(OplinkAttenuation.class, new OplinkAttenuationCodec());
    log.info("Registered default driver codecs.");
}
 
开发者ID:opennetworkinglab,项目名称:onos,代码行数:23,代码来源:DefaultCodecRegister.java

示例2: deactivate

import org.onosproject.driver.extensions.OfdpaSetVlanVid; //导入依赖的package包/类
@Deactivate
public void deactivate() {
    codecService.unregisterCodec(MoveExtensionTreatment.class);
    codecService.unregisterCodec(NiciraMatchNshSi.class);
    codecService.unregisterCodec(NiciraMatchNshSpi.class);
    codecService.unregisterCodec(NiciraResubmit.class);
    codecService.unregisterCodec(NiciraResubmitTable.class);
    codecService.unregisterCodec(NiciraSetNshSi.class);
    codecService.unregisterCodec(NiciraSetNshSpi.class);
    codecService.unregisterCodec(NiciraSetTunnelDst.class);
    codecService.unregisterCodec(NiciraSetNshContextHeader.class);
    codecService.unregisterCodec(OfdpaMatchVlanVid.class);
    codecService.unregisterCodec(OfdpaSetVlanVid.class);
    codecService.unregisterCodec(Ofdpa3SetMplsType.class);
    codecService.unregisterCodec(Ofdpa3MatchOvid.class);
    codecService.unregisterCodec(Ofdpa3SetOvid.class);
    codecService.unregisterCodec(Ofdpa3SetQosIndex.class);
    codecService.unregisterCodec(Ofdpa3MatchMplsL2Port.class);
    codecService.unregisterCodec(Ofdpa3SetMplsL2Port.class);
    codecService.unregisterCodec(OplinkAttenuation.class);
    log.info("Unregistered default driver codecs.");
}
 
开发者ID:opennetworkinglab,项目名称:onos,代码行数:23,代码来源:DefaultCodecRegister.java

示例3: encode

import org.onosproject.driver.extensions.OfdpaSetVlanVid; //导入依赖的package包/类
@Override
public ObjectNode encode(OfdpaSetVlanVid vlanId, CodecContext context) {
    checkNotNull(vlanId, "Vlan ID cannot be null");
    ObjectNode root = context.mapper().createObjectNode()
            .put(VLAN_ID, vlanId.vlanId().id());
    return root;
}
 
开发者ID:shlee89,项目名称:athena,代码行数:8,代码来源:OfdpaSetVlanVidCodec.java

示例4: decode

import org.onosproject.driver.extensions.OfdpaSetVlanVid; //导入依赖的package包/类
@Override
public OfdpaSetVlanVid decode(ObjectNode json, CodecContext context) {
    if (json == null || !json.isObject()) {
        return null;
    }

    // parse ofdpa set vlan vid
    short vlanVid = (short) nullIsIllegal(json.get(VLAN_ID),
            VLAN_ID + MISSING_MEMBER_MESSAGE).asInt();
    return new OfdpaSetVlanVid(VlanId.vlanId(vlanVid));
}
 
开发者ID:shlee89,项目名称:athena,代码行数:12,代码来源:OfdpaSetVlanVidCodec.java

示例5: activate

import org.onosproject.driver.extensions.OfdpaSetVlanVid; //导入依赖的package包/类
@Activate
public void activate() {
    codecService.registerCodec(MoveExtensionTreatment.class, new MoveExtensionTreatmentCodec());
    codecService.registerCodec(NiciraMatchNshSi.class, new NiciraMatchNshSiCodec());
    codecService.registerCodec(NiciraMatchNshSpi.class, new NiciraMatchNshSpiCodec());
    codecService.registerCodec(NiciraResubmit.class, new NiciraResubmitCodec());
    codecService.registerCodec(NiciraResubmitTable.class, new NiciraResubmitTableCodec());
    codecService.registerCodec(NiciraSetNshSi.class, new NiciraSetNshSiCodec());
    codecService.registerCodec(NiciraSetNshSpi.class, new NiciraSetNshSpiCodec());
    codecService.registerCodec(NiciraSetTunnelDst.class, new NiciraSetTunnelDstCodec());
    codecService.registerCodec(NiciraSetNshContextHeader.class, new NiciraSetNshContextHeaderCodec());
    codecService.registerCodec(OfdpaMatchVlanVid.class, new OfdpaMatchVlanVidCodec());
    codecService.registerCodec(OfdpaSetVlanVid.class, new OfdpaSetVlanVidCodec());
    log.info("Registered default driver codecs.");
}
 
开发者ID:shlee89,项目名称:athena,代码行数:16,代码来源:DefaultCodecRegister.java

示例6: deactivate

import org.onosproject.driver.extensions.OfdpaSetVlanVid; //导入依赖的package包/类
@Deactivate
public void deactivate() {
    codecService.unregisterCodec(MoveExtensionTreatment.class);
    codecService.unregisterCodec(NiciraMatchNshSi.class);
    codecService.unregisterCodec(NiciraMatchNshSpi.class);
    codecService.unregisterCodec(NiciraResubmit.class);
    codecService.unregisterCodec(NiciraResubmitTable.class);
    codecService.unregisterCodec(NiciraSetNshSi.class);
    codecService.unregisterCodec(NiciraSetNshSpi.class);
    codecService.unregisterCodec(NiciraSetTunnelDst.class);
    codecService.unregisterCodec(NiciraSetNshContextHeader.class);
    codecService.unregisterCodec(OfdpaMatchVlanVid.class);
    codecService.unregisterCodec(OfdpaSetVlanVid.class);
    log.info("Unregistered default driver codecs.");
}
 
开发者ID:shlee89,项目名称:athena,代码行数:16,代码来源:DefaultCodecRegister.java

示例7: encode

import org.onosproject.driver.extensions.OfdpaSetVlanVid; //导入依赖的package包/类
@Override
public ObjectNode encode(OfdpaSetVlanVid vlanId, CodecContext context) {
    checkNotNull(vlanId, MISSING_VLAN_ID_MESSAGE);
    return context.mapper().createObjectNode()
            .put(VLAN_ID, vlanId.vlanId().id());
}
 
开发者ID:opennetworkinglab,项目名称:onos,代码行数:7,代码来源:OfdpaSetVlanVidCodec.java


注:本文中的org.onosproject.driver.extensions.OfdpaSetVlanVid类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。