summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/vyos/template.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/vyos/template.py b/python/vyos/template.py
index f03fd7ee7..0d2bd39e7 100644
--- a/python/vyos/template.py
+++ b/python/vyos/template.py
@@ -433,3 +433,9 @@ def get_esp_ike_cipher(group_config):
ciphers.append(tmp)
return ciphers
+
+@register_filter('get_uuid')
+def get_uuid(interface):
+ """ Get interface IP addresses"""
+ from uuid import uuid1
+ return uuid1()