ncdiff.calculator sub-module

class ncdiff.calculator.BaseCalculator(device, etree1, etree2)[source]

A set of methods to help calculate substruction and addition of two Config instances. This is a base class, which is inherited by protocol calculator classes, for example: NetconfCalculator and RestconfCalculator.

device

An instance of yang.ncdiff.ModelDevice, which represents a modeled device.

Type:object
etree1

A lxml Element which contains the config.

Type:Element
etree2

A lxml Element which contains the other config.

Type:Element

__init__ instantiates a BaseCalculator instance.