summaryrefslogtreecommitdiff
path: root/src/services/api/graphql/session/templates/create_interface_ethernet.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/api/graphql/session/templates/create_interface_ethernet.tmpl')
-rw-r--r--src/services/api/graphql/session/templates/create_interface_ethernet.tmpl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/services/api/graphql/session/templates/create_interface_ethernet.tmpl b/src/services/api/graphql/session/templates/create_interface_ethernet.tmpl
new file mode 100644
index 000000000..d9d7ed691
--- /dev/null
+++ b/src/services/api/graphql/session/templates/create_interface_ethernet.tmpl
@@ -0,0 +1,5 @@
+{% if replace %}
+delete interfaces ethernet {{ interface }} address
+{% endif %}
+set interfaces ethernet {{ interface }} address {{ address }}
+set interfaces ethernet {{ interface }} description {{ description }}