diff options
author | John Estabrook <jestabro@vyos.io> | 2021-11-14 19:03:25 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2021-11-15 14:50:28 -0600 |
commit | 8915a19f7761253b7bdf6ca847069539ee33851d (patch) | |
tree | 7e30fcb40c7e103de23a056b3bc5dc3d1d7e804f /src/services/api/graphql/recipes/config_file.py | |
parent | 9e2694b24b06d928240522322c9a6d60c7a7d290 (diff) | |
download | vyos-1x-8915a19f7761253b7bdf6ca847069539ee33851d.tar.gz vyos-1x-8915a19f7761253b7bdf6ca847069539ee33851d.zip |
graphql: T3993: add config file save/load
Diffstat (limited to 'src/services/api/graphql/recipes/config_file.py')
-rw-r--r-- | src/services/api/graphql/recipes/config_file.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/services/api/graphql/recipes/config_file.py b/src/services/api/graphql/recipes/config_file.py new file mode 100644 index 000000000..850e5326e --- /dev/null +++ b/src/services/api/graphql/recipes/config_file.py @@ -0,0 +1,16 @@ + +from . recipe import Recipe + +class ConfigFile(Recipe): + def __init__(self, session, command_file): + super().__init__(session, command_file) + + # Define any custom processing of parameters here by overriding + # save/load: + # + # def save(self): + # self.data = transform_data(self.data) + # super().save() + # def load(self): + # self.data = transform_data(self.data) + # super().load() |