Adding the Cleaner Class¶
pyATS must know where the python code for the clean exists. The cleaners
section in the Clean YAML
is where the
cleaner module and class is defined.
Cleaner Class for pyATS Clean¶
For pyATS Clean, the cleaner module is genie.libs.clean
and the cleaner class is PyatsDeviceClean
. Add the highlighted
text below into your Clean YAML
.
1cleaners:
2 # This means to use the cleaner class `PyatsDeviceClean`
3 PyatsDeviceClean:
4 # The module is where the cleaner class above can be found
5 module: genie.libs.clean
Combining a different clean with pyATS Clean¶
The cleaners
section in the Clean YAML
supports multiple cleaners. For example, if pyATS Clean does not
support a platform that Uniclean does, you can use both of them at the same time.
Note
Uniclean is end-of-life and end-of-support.
Combining a different clean with pyATS Clean should only be used as a temporary work-around until pyATS Clean has support.
Please contact the development team and/or contribute following the Developer Guide to fill these feature gaps.
1cleaners:
2 # This means to use the cleaner class `PyatsDeviceClean`
3 PyatsDeviceClean:
4 # The module is where the cleaner class above can be found
5 module: genie.libs.clean
6
7 # This is the uniclean cleaner class
8 DeviceClean:
9 # This is the uniclean module
10 module: Uniclean.uniclean