Move module methods of the Python config library to a class
Closed, ResolvedPublic

Description

The old Vyatta::Config module module for Perl keeps everything inside an object.

We should do the same to the Python library for two reasons. First, it will enable more straightforward translation of the old code.
Second, the VyConf version in the future will implement full config session hangling, and this will be inherently stateful.

Even now there are some handy functions that require state keeping, such as set_level, so this will enable adding them back as well.

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
This request is:
Service Request
dmbaturin created this object with visibility "Public (No Login Required)".
dmbaturin closed this task as Resolved.Aug 18 2017, 6:44 AM

Looks like phabricator hasn't picked up those commits for some reason...

Here is it: https://github.com/vyos/vyos-1x/blob/current/python/vyos/config.py