diff options
author | John Estabrook <jestabro@vyos.io> | 2021-11-22 15:29:46 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2021-11-23 10:46:55 -0600 |
commit | ef7f5ca2fd2c0113875dbd9143342e925cf00621 (patch) | |
tree | 5a5ddc62f15f429062e42625a1517aad52d55a0a /src/services/api/graphql/recipes | |
parent | fb2dc58d91bd93ba3aaa63d46e49e6609c18d46f (diff) | |
download | vyos-1x-ef7f5ca2fd2c0113875dbd9143342e925cf00621.tar.gz vyos-1x-ef7f5ca2fd2c0113875dbd9143342e925cf00621.zip |
graphql: T3993: refactor directive and mutation definitions
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 |