Class NetconfBaseServiceImpl
java.lang.Object
io.lighty.modules.southbound.netconf.impl.NetconfBaseServiceImpl
- All Implemented Interfaces:
NetconfBaseService,org.opendaylight.mdsal.dom.api.DOMService
- Direct Known Subclasses:
NetconfNmdaBaseServiceImpl
-
Constructor Summary
ConstructorsConstructorDescriptionNetconfBaseServiceImpl(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId nodeId, org.opendaylight.mdsal.dom.api.DOMRpcService domRpcService, org.opendaylight.yangtools.yang.model.api.EffectiveModelContext effectiveModelContext) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.mdsal.dom.api.DOMRpcResult>copyConfig(org.opendaylight.yangtools.yang.common.QName sourceDatastore, org.opendaylight.yangtools.yang.common.QName targetDatastore) Netconf protocol operation copy-config.com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.mdsal.dom.api.DOMRpcResult>deleteConfig(org.opendaylight.yangtools.yang.common.QName targetDatastore) Netconf protocol operation delete-config.com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.mdsal.dom.api.DOMRpcResult>editConfig(org.opendaylight.yangtools.yang.common.QName targetDatastore, Optional<org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode> data, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier dataPath, Optional<org.opendaylight.netconf.api.EffectiveOperation> dataEffectiveOperationAttribute, Optional<org.opendaylight.netconf.api.EffectiveOperation> defaultEffectiveOperation, boolean rollback) Netconf protocol operation edit-config.com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.mdsal.dom.api.DOMRpcResult>Netconf protocol operation get.com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.mdsal.dom.api.DOMRpcResult>getConfig(org.opendaylight.yangtools.yang.common.QName sourceDatastore, Optional<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier> filterYII) Netconf protocol operation get-config.org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeIdGet Id of the Netconf device of this service instance.org.opendaylight.mdsal.dom.api.DOMRpcServiceGet DOMRpcService for the Netconf device of this service instance.org.opendaylight.yangtools.yang.model.api.EffectiveModelContextGet SchemaContext for the Netconf device of this service instance.com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.mdsal.dom.api.DOMRpcResult>lock(org.opendaylight.yangtools.yang.common.QName targetDatastore) Netconf protocol operation lock.com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.mdsal.dom.api.DOMRpcResult>unlock(org.opendaylight.yangtools.yang.common.QName targetDatastore) Netconf protocol operation unlock.
-
Constructor Details
-
NetconfBaseServiceImpl
public NetconfBaseServiceImpl(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId nodeId, org.opendaylight.mdsal.dom.api.DOMRpcService domRpcService, org.opendaylight.yangtools.yang.model.api.EffectiveModelContext effectiveModelContext)
-
-
Method Details
-
get
public com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.mdsal.dom.api.DOMRpcResult> get(Optional<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier> filterYII) Description copied from interface:NetconfBaseServiceNetconf protocol operation get.- Specified by:
getin interfaceNetconfBaseService- Parameters:
filterYII- may contain filter YangInstanceIdentifier if needed- Returns:
- future with RPC result
-
getConfig
public com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.mdsal.dom.api.DOMRpcResult> getConfig(org.opendaylight.yangtools.yang.common.QName sourceDatastore, Optional<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier> filterYII) Description copied from interface:NetconfBaseServiceNetconf protocol operation get-config.- Specified by:
getConfigin interfaceNetconfBaseService- Parameters:
sourceDatastore- type of the configuration datastore being queriedfilterYII- may contain filter YangInstanceIdentifier if needed- Returns:
- future with RPC result
-
editConfig
public com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.mdsal.dom.api.DOMRpcResult> editConfig(org.opendaylight.yangtools.yang.common.QName targetDatastore, Optional<org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode> data, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier dataPath, Optional<org.opendaylight.netconf.api.EffectiveOperation> dataEffectiveOperationAttribute, Optional<org.opendaylight.netconf.api.EffectiveOperation> defaultEffectiveOperation, boolean rollback) Description copied from interface:NetconfBaseServiceNetconf protocol operation edit-config.- Specified by:
editConfigin interfaceNetconfBaseService- Parameters:
targetDatastore- type of the configuration datastore being editeddata- configuration datadataPath- YangInstanceIdentifier for the configuration datadataEffectiveOperationAttribute- may contain operation attribute for the configuration datadefaultEffectiveOperation- may contain default operationrollback- if true, rollback on error option is added to the edit-config message- Returns:
- future with RPC result
-
copyConfig
public com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.mdsal.dom.api.DOMRpcResult> copyConfig(org.opendaylight.yangtools.yang.common.QName sourceDatastore, org.opendaylight.yangtools.yang.common.QName targetDatastore) Description copied from interface:NetconfBaseServiceNetconf protocol operation copy-config.- Specified by:
copyConfigin interfaceNetconfBaseService- Parameters:
sourceDatastore- type of the configuration datastore to use as the source of the copy-config operationtargetDatastore- type of the configuration datastore to use as the destination of the copy-config operation- Returns:
- future with RPC result
-
deleteConfig
public com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.mdsal.dom.api.DOMRpcResult> deleteConfig(org.opendaylight.yangtools.yang.common.QName targetDatastore) Description copied from interface:NetconfBaseServiceNetconf protocol operation delete-config.- Specified by:
deleteConfigin interfaceNetconfBaseService- Parameters:
targetDatastore- type of the configuration datastore to delete- Returns:
- future with RPC result
-
lock
public com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.mdsal.dom.api.DOMRpcResult> lock(org.opendaylight.yangtools.yang.common.QName targetDatastore) Description copied from interface:NetconfBaseServiceNetconf protocol operation lock.- Specified by:
lockin interfaceNetconfBaseService- Parameters:
targetDatastore- of the configuration datastore to lock- Returns:
- future with RPC result
-
unlock
public com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.mdsal.dom.api.DOMRpcResult> unlock(org.opendaylight.yangtools.yang.common.QName targetDatastore) Description copied from interface:NetconfBaseServiceNetconf protocol operation unlock.- Specified by:
unlockin interfaceNetconfBaseService- Parameters:
targetDatastore- of the configuration datastore to unlock- Returns:
- future with RPC result
-
getDeviceId
public org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId getDeviceId()Description copied from interface:NetconfBaseServiceGet Id of the Netconf device of this service instance.- Specified by:
getDeviceIdin interfaceNetconfBaseService- Returns:
- Id of the Netconf device
-
getDOMRpcService
public org.opendaylight.mdsal.dom.api.DOMRpcService getDOMRpcService()Description copied from interface:NetconfBaseServiceGet DOMRpcService for the Netconf device of this service instance.- Specified by:
getDOMRpcServicein interfaceNetconfBaseService- Returns:
- DOMRpcService for the Netconf device
-
getEffectiveModelContext
public org.opendaylight.yangtools.yang.model.api.EffectiveModelContext getEffectiveModelContext()Description copied from interface:NetconfBaseServiceGet SchemaContext for the Netconf device of this service instance.- Specified by:
getEffectiveModelContextin interfaceNetconfBaseService- Returns:
- SchemaContext for the Netconf device
-