aboutsummaryrefslogtreecommitdiffstats
path: root/web/templates/switch.txt
diff options
context:
space:
mode:
authorroot <root@gondul.tg23.gathering.org>2023-04-01 13:05:00 +0200
committerroot <root@gondul.tg23.gathering.org>2023-04-01 13:05:00 +0200
commit73712230cccb52757abdf3b3197b441ee301638a (patch)
tree650e3ed1a42e9823823826841b24bd2c28602b98 /web/templates/switch.txt
parentf41402f56282320473843df8726d5e04878427ca (diff)
Remove templates, increase polling timeout +tg23
Diffstat (limited to 'web/templates/switch.txt')
-rw-r--r--web/templates/switch.txt19
1 files changed, 0 insertions, 19 deletions
diff --git a/web/templates/switch.txt b/web/templates/switch.txt
deleted file mode 100644
index 0fd9754..0000000
--- a/web/templates/switch.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-{#
- This can be used through GET /templating/switch.txt?switch=e41-2
-
- It is provided as a simple demo of how to combine "GET parameters" with
- templating.
-
- #}
-{% set sw = options["switch"] %}
-{% set s = objects["public/switches"].switches[sw] %}
-{% if s %}
-{% set mg = objects["read/switches-management"].switches[sw] %}
-
-Switch {{ sw }} has management ip {{ mg.mgmt_v4_addr }}
-
-It is assoicated with distro {{ s.distro_name }}
-{% else %}
-Switch not found
-{% endif %}
-