Search in sources :

Example 1 with ConnectionKeys

use of org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.connectivitycontext.ConnectionKeys 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 2 with ConnectionKeys

use of org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.connectivitycontext.ConnectionKeys in project onos by opennetworkinglab.

the class TapiRouteHandler method getParentModelObjectId.

@Override
public ModelObjectId getParentModelObjectId() {
    ConnectionKeys connectionKeys = new ConnectionKeys();
    connectionKeys.uuid(connectionId);
    return ModelObjectId.builder().addChild(DefaultContext.class).addChild(DefaultConnectivityContext.class).addChild(DefaultConnection.class, connectionKeys).build();
}
Also used : 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)

Aggregations

DefaultContext (org.onosproject.yang.gen.v1.tapicommon.rev20181210.tapicommon.DefaultContext)2 ConnectionKeys (org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.connectivitycontext.ConnectionKeys)2 DefaultConnection (org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.connectivitycontext.DefaultConnection)2 DefaultConnectionEndPoint (org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.connection.DefaultConnectionEndPoint)1 ModelObjectId (org.onosproject.yang.model.ModelObjectId)1