summaryrefslogtreecommitdiff
path: root/src/services/api/graphql/recipes/interface_ethernet.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-08-05 11:24:47 -0500
committerJohn Estabrook <jestabro@vyos.io>2021-08-06 14:12:47 -0500
commita2b959c50c96698da173b9c4720369a51442cc5c (patch)
tree0056f7fa622c02e836a21879129d139577ca6e76 /src/services/api/graphql/recipes/interface_ethernet.py
parentd3d4e3bedcc0b43e16554b1832b43da9d41e651f (diff)
downloadvyos-1x-a2b959c50c96698da173b9c4720369a51442cc5c.tar.gz
vyos-1x-a2b959c50c96698da173b9c4720369a51442cc5c.zip
http-api: T2768: example using GraphQL for high-level config operations
Diffstat (limited to 'src/services/api/graphql/recipes/interface_ethernet.py')
-rw-r--r--src/services/api/graphql/recipes/interface_ethernet.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/services/api/graphql/recipes/interface_ethernet.py b/src/services/api/graphql/recipes/interface_ethernet.py
new file mode 100644
index 000000000..f88f5924f
--- /dev/null
+++ b/src/services/api/graphql/recipes/interface_ethernet.py
@@ -0,0 +1,13 @@
+
+from . recipe import Recipe
+
+class InterfaceEthernet(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()