diff options
author | John Estabrook <jestabro@vyos.io> | 2021-11-22 15:29:46 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2021-11-24 13:33:45 -0600 |
commit | 114be88565cd09c0a7dcbe67a753d7d2834659b9 (patch) | |
tree | 127bc9de8f4fab653920608e7591341881a37153 /src/services/api/graphql/recipes | |
parent | 97022cea7fe4bb56919bcaa85568afac2420aba7 (diff) | |
download | vyos-1x-114be88565cd09c0a7dcbe67a753d7d2834659b9.tar.gz vyos-1x-114be88565cd09c0a7dcbe67a753d7d2834659b9.zip |
graphql: T3993: refactor directive and mutation definitions
(cherry picked from commit ef7f5ca2fd2c0113875dbd9143342e925cf00621)
Diffstat (limited to 'src/services/api/graphql/recipes')
-rw-r--r-- | src/services/api/graphql/recipes/config_file.py | 16 | ||||
-rw-r--r-- | src/services/api/graphql/recipes/create_dhcp_server.py | 13 | ||||
-rw-r--r-- | src/services/api/graphql/recipes/create_interface_ethernet.py | 13 | ||||
-rw-r--r-- | src/services/api/graphql/recipes/session.py (renamed from src/services/api/graphql/recipes/recipe.py) | 2 |
4 files changed, 1 insertions, 43 deletions
diff --git a/src/services/api/graphql/recipes/config_file.py b/src/services/api/graphql/recipes/config_file.py deleted file mode 100644 index 850e5326e..000000000 --- a/src/services/api/graphql/recipes/config_file.py +++ /dev/null @@ -1,16 +0,0 @@ - -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() diff --git a/src/services/api/graphql/recipes/create_dhcp_server.py b/src/services/api/graphql/recipes/create_dhcp_server.py deleted file mode 100644 index ac6f15209..000000000 --- a/src/services/api/graphql/recipes/create_dhcp_server.py +++ /dev/null @@ -1,13 +0,0 @@ - -from . recipe import Recipe - -class CreateDhcpServer(Recipe): - def __init__(self, session, command_file): - super().__init__(session, command_file) - - # Define any custom processing of parameters here by overriding - # configure: - # - # def configure(self): - # self.data = transform_data(self.data) - # super().configure() diff --git a/src/services/api/graphql/recipes/create_interface_ethernet.py b/src/services/api/graphql/recipes/create_interface_ethernet.py deleted file mode 100644 index aafb4d55c..000000000 --- a/src/services/api/graphql/recipes/create_interface_ethernet.py +++ /dev/null @@ -1,13 +0,0 @@ - -from . recipe import Recipe - -class CreateInterfaceEthernet(Recipe): - def __init__(self, session, command_file): - super().__init__(session, command_file) - - # Define any custom processing of parameters here by overriding - # configure: - # - # def configure(self): - # self.data = transform_data(self.data) - # super().configure() diff --git a/src/services/api/graphql/recipes/recipe.py b/src/services/api/graphql/recipes/session.py index 91d8bd67a..aa3932ab9 100644 --- a/src/services/api/graphql/recipes/recipe.py +++ b/src/services/api/graphql/recipes/session.py @@ -2,7 +2,7 @@ from ariadne import convert_camel_case_to_snake import vyos.defaults from vyos.template import render -class Recipe(object): +class Session(object): def __init__(self, session, data): self._session = session self.data = data |