當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。