ncdiff.composer sub-module¶
-
class
ncdiff.composer.Composer(device, node)[source]¶ A base composer class, which is inherited by protocol composer classes, for example: RestconfComposer and gNMIComposer.
-
device¶ An instance of yang.ncdiff.ModelDevice, which represents a modeled device.
Type: object
-
node¶ A config node or a schema node.
Type: Element
-
path¶ A list of ancestors, starting from the root of self.node.
Type: list
-
model_name¶ Model name that self.node belongs to.
Type: str
-
model_ns¶ Model URL that the root of self.node belongs to.
Type: str
-
is_config¶ True if self.node is a config node, False if self.node is a schema node.
Type: bool
-
schema_node¶ Coresponding model schema node of self.node if self.node is a config node.
Type: Element
-
keys¶ A list of key tags if self.node is type
list.Type: Element
__init__ instantiates a Composer instance.
-