Annotation
- class ydk.path.Annotation(namespace, name, value)
An annotation has a namespace and a name and an associated value. Annotations are not defined in the YANG model and hence just provide a means of hanging some useful data to
DataNode
. For example netconf edit-config rpc operation uses the annotationnc:operation
(nc
refers to the netconf namespace) on the data nodes to describe the kind of operation one needs to perform on the givenDataNode
.- Parameters
namespace – (
str
) Annotation namespace.name – (
str
) Annotation name.value – (
str
) Annotation value.
Example usage:
>>> from ydk.path import Annotation >>> ann = Annotation('ietf-netconf', 'operation', 'merge')