Search in sources :

Example 1 with DefaultConnectionEndPoint

use of org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.connection.DefaultConnectionEndPoint in project onos by opennetworkinglab.

the class TapiNepHandler method addCep.

public TapiNepHandler addCep(DefaultConnectionEndPoint cep) {
    DefaultCepList cepList = new DefaultCepList();
    cepList.addToConnectionEndPoint(cep);
    DefaultAugmentedTapiTopologyOwnedNodeEdgePoint augmentNep = new DefaultAugmentedTapiTopologyOwnedNodeEdgePoint();
    augmentNep.cepList(cepList);
    obj.addAugmentation(augmentNep);
    return this;
}
Also used : DefaultAugmentedTapiTopologyOwnedNodeEdgePoint(org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.context.topologycontext.topology.node.ownednodeedgepoint.DefaultAugmentedTapiTopologyOwnedNodeEdgePoint) DefaultCepList(org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.context.topologycontext.topology.node.ownednodeedgepoint.augmentedtapitopologyownednodeedgepoint.DefaultCepList)

Example 2 with DefaultConnectionEndPoint

use of org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.connection.DefaultConnectionEndPoint in project onos by opennetworkinglab.

the class TapiConnectionHandler method getChildModelObjectData.

@Override
public ModelObjectData getChildModelObjectData() {
    ConnectionKeys key = new ConnectionKeys();
    key.uuid(getId());
    DefaultConnectionEndPoint mObj = new DefaultConnectionEndPoint();
    ModelObjectId mId = ModelObjectId.builder().addChild(DefaultContext.class).addChild(DefaultConnectivityContext.class).addChild(DefaultConnection.class, key).build();
    return DefaultModelObjectData.builder().addModelObject(mObj).identifier(mId).build();
}
Also used : DefaultConnectionEndPoint(org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.connection.DefaultConnectionEndPoint) DefaultConnection(org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.connectivitycontext.DefaultConnection) ConnectionKeys(org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.connectivitycontext.ConnectionKeys) DefaultContext(org.onosproject.yang.gen.v1.tapicommon.rev20181210.tapicommon.DefaultContext) ModelObjectId(org.onosproject.yang.model.ModelObjectId)

Example 3 with DefaultConnectionEndPoint

use of org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.connection.DefaultConnectionEndPoint in project onos by opennetworkinglab.

the class TapiRouteHandler method addCep.

public TapiRouteHandler addCep(TapiCepRef cepRef) {
    DefaultConnectionEndPoint cep = new DefaultConnectionEndPoint();
    cep.topologyUuid(cepRef.getTopologyId());
    cep.nodeUuid(cepRef.getNodeId());
    cep.nodeEdgePointUuid(cepRef.getNepId());
    cep.connectionEndPointUuid(cepRef.getCepId());
    obj.addToConnectionEndPoint(cep);
    return this;
}
Also used : DefaultConnectionEndPoint(org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.route.DefaultConnectionEndPoint)

Aggregations

DefaultContext (org.onosproject.yang.gen.v1.tapicommon.rev20181210.tapicommon.DefaultContext)1 DefaultConnectionEndPoint (org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.connection.DefaultConnectionEndPoint)1 ConnectionKeys (org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.connectivitycontext.ConnectionKeys)1 DefaultConnection (org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.connectivitycontext.DefaultConnection)1 DefaultAugmentedTapiTopologyOwnedNodeEdgePoint (org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.context.topologycontext.topology.node.ownednodeedgepoint.DefaultAugmentedTapiTopologyOwnedNodeEdgePoint)1 DefaultCepList (org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.context.topologycontext.topology.node.ownednodeedgepoint.augmentedtapitopologyownednodeedgepoint.DefaultCepList)1 DefaultConnectionEndPoint (org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.route.DefaultConnectionEndPoint)1 ModelObjectId (org.onosproject.yang.model.ModelObjectId)1