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
public class NetconfBaseServiceImpl extends Object implements NetconfBaseService
-
-
Constructor Summary
Constructors Constructor Description 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.SchemaContext schemaContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<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<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<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.ModifyAction> dataModifyActionAttribute, Optional<org.opendaylight.netconf.api.ModifyAction> defaultModifyAction, boolean rollback)Netconf protocol operation edit-config.com.google.common.util.concurrent.ListenableFuture<org.opendaylight.mdsal.dom.api.DOMRpcResult>get(Optional<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier> filterYII)Netconf protocol operation get.com.google.common.util.concurrent.ListenableFuture<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.NodeIdgetDeviceId()Get Id of the Netconf device of this service instance.org.opendaylight.mdsal.dom.api.DOMRpcServicegetDOMRpcService()Get DOMRpcService for the Netconf device of this service instance.org.opendaylight.yangtools.yang.model.api.SchemaContextgetSchemaContext()Get SchemaContext for the Netconf device of this service instance.com.google.common.util.concurrent.ListenableFuture<org.opendaylight.mdsal.dom.api.DOMRpcResult>lock(org.opendaylight.yangtools.yang.common.QName targetDatastore)Netconf protocol operation lock.com.google.common.util.concurrent.ListenableFuture<org.opendaylight.mdsal.dom.api.DOMRpcResult>unlock(org.opendaylight.yangtools.yang.common.QName targetDatastore)Netconf protocol operation unlock.
-
-
-
Constructor Detail
-
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.SchemaContext schemaContext)
-
-
Method Detail
-
get
public com.google.common.util.concurrent.ListenableFuture<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<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<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.ModifyAction> dataModifyActionAttribute, Optional<org.opendaylight.netconf.api.ModifyAction> defaultModifyAction, 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 datadataModifyActionAttribute- may contain operation attribute for the configuration datadefaultModifyAction- 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<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<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<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<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
-
getSchemaContext
public org.opendaylight.yangtools.yang.model.api.SchemaContext getSchemaContext()
Description copied from interface:NetconfBaseServiceGet SchemaContext for the Netconf device of this service instance.- Specified by:
getSchemaContextin interfaceNetconfBaseService- Returns:
- SchemaContext for the Netconf device
-
-