summaryrefslogtreecommitdiff
path: root/python/vyos/template.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-07-20 20:58:05 +0200
committerChristian Poessinger <christian@poessinger.com>2021-07-20 20:59:14 +0200
commit69614d7d501811164010a83441ea807716903cf1 (patch)
tree40c739f085f19906dee341ca1b03ea3a944801ba /python/vyos/template.py
parent4d55afded46a07c761a724989e0e66fe88d705c7 (diff)
downloadvyos-1x-69614d7d501811164010a83441ea807716903cf1.tar.gz
vyos-1x-69614d7d501811164010a83441ea807716903cf1.zip
ipsec: T1210: add op-mode command for macOS and iOS profile generation
generate ipsec mac-ios-profile <connection> remote <ip|fqdn> will generate a matching IPSec profile which can be loaded on an iOS device.
Diffstat (limited to 'python/vyos/template.py')
-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()