Class NetconfNmdaBaseServiceImpl
java.lang.Object
io.lighty.modules.southbound.netconf.impl.NetconfBaseServiceImpl
io.lighty.modules.southbound.netconf.impl.NetconfNmdaBaseServiceImpl
- All Implemented Interfaces:
NetconfBaseService,NetconfNmdaBaseService,org.opendaylight.mdsal.dom.api.DOMService
public class NetconfNmdaBaseServiceImpl
extends NetconfBaseServiceImpl
implements NetconfNmdaBaseService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.opendaylight.yangtools.yang.common.QNamestatic final org.opendaylight.yangtools.yang.common.QNamestatic final org.opendaylight.yangtools.yang.common.QName -
Constructor Summary
ConstructorsConstructorDescriptionNetconfNmdaBaseServiceImpl(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>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>editData(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> dataEffectiveOperation, Optional<org.opendaylight.netconf.api.EffectiveOperation> defaultEffectiveOperation) Netconf protocol operation edit-data.com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.mdsal.dom.api.DOMRpcResult>getData(org.opendaylight.yangtools.yang.common.QName sourceDatastore, Optional<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier> filterYII, Optional<Boolean> configFilter, Optional<Integer> maxDepth, Optional<Set<org.opendaylight.yangtools.yang.common.QName>> originFilter, Optional<Boolean> negateOriginFilter, Optional<Boolean> withOrigin) Netconf protocol operation get-data.Methods inherited from class io.lighty.modules.southbound.netconf.impl.NetconfBaseServiceImpl
copyConfig, editConfig, get, getConfig, getDeviceId, getDOMRpcService, getEffectiveModelContext, lock, unlockMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.lighty.modules.southbound.netconf.impl.NetconfBaseService
copyConfig, editConfig, get, getConfig, getDeviceId, getDOMRpcService, getEffectiveModelContext, lock, unlock
-
Field Details
-
NETCONF_NMDA_EXTENSION_QNAME
public static final org.opendaylight.yangtools.yang.common.QName NETCONF_NMDA_EXTENSION_QNAME -
NETCONF_GET_DATA_QNAME
public static final org.opendaylight.yangtools.yang.common.QName NETCONF_GET_DATA_QNAME -
NETCONF_EDIT_DATA_QNAME
public static final org.opendaylight.yangtools.yang.common.QName NETCONF_EDIT_DATA_QNAME
-
-
Constructor Details
-
NetconfNmdaBaseServiceImpl
public NetconfNmdaBaseServiceImpl(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
-
getData
public com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.mdsal.dom.api.DOMRpcResult> getData(org.opendaylight.yangtools.yang.common.QName sourceDatastore, Optional<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier> filterYII, Optional<Boolean> configFilter, Optional<Integer> maxDepth, Optional<Set<org.opendaylight.yangtools.yang.common.QName>> originFilter, Optional<Boolean> negateOriginFilter, Optional<Boolean> withOrigin) Description copied from interface:NetconfNmdaBaseServiceNetconf protocol operation get-data.- Specified by:
getDatain interfaceNetconfNmdaBaseService- Parameters:
sourceDatastore- type of the configuration datastore being queriedfilterYII- may contain filter YangInstanceIdentifier if neededconfigFilter- flag for getting the configuration nodes onlymaxDepth- flag for limiting the number of subtree levels returned in the replyoriginFilter- flag for specifying the origin filter which selects nodes equal to or derived from any of the given valuesnegateOriginFilter- flag if we want to negate the origin filterwithOrigin- requests that the server includes "origin" metadata annotations in its response, as detailed in the NMDA.- Returns:
- future with RPC result
-
editData
public com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.mdsal.dom.api.DOMRpcResult> editData(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> dataEffectiveOperation, Optional<org.opendaylight.netconf.api.EffectiveOperation> defaultEffectiveOperation) Description copied from interface:NetconfNmdaBaseServiceNetconf protocol operation edit-data.- Specified by:
editDatain interfaceNetconfNmdaBaseService- Parameters:
targetDatastore- type of the configuration datastore being editeddata- configuration datadataPath- YangInstanceIdentifier for the configuration datadataEffectiveOperation- may contain operation attribute for the configuration datadefaultEffectiveOperation- may contain default 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- Overrides:
deleteConfigin classNetconfBaseServiceImpl- Parameters:
targetDatastore- type of the configuration datastore to delete- Returns:
- future with RPC result
-