diff options
author | John Estabrook <jestabro@vyos.io> | 2021-08-05 11:24:47 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2021-08-06 14:12:47 -0500 |
commit | a2b959c50c96698da173b9c4720369a51442cc5c (patch) | |
tree | 0056f7fa622c02e836a21879129d139577ca6e76 /src/services/api/graphql/recipes/templates/interface_ethernet.tmpl | |
parent | d3d4e3bedcc0b43e16554b1832b43da9d41e651f (diff) | |
download | vyos-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/templates/interface_ethernet.tmpl')
-rw-r--r-- | src/services/api/graphql/recipes/templates/interface_ethernet.tmpl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/services/api/graphql/recipes/templates/interface_ethernet.tmpl b/src/services/api/graphql/recipes/templates/interface_ethernet.tmpl new file mode 100644 index 000000000..d9d7ed691 --- /dev/null +++ b/src/services/api/graphql/recipes/templates/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 }} |