summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-07-01 11:07:53 +0200
committerChristian Poessinger <christian@poessinger.com>2022-07-01 11:07:53 +0200
commitd5ac587ac809ebb2f72bc3d39275756934a1f1c7 (patch)
tree8d17fa455e944fb640cf8673fae9a1196c6dcdf4 /python/vyos/ifconfig
parent9773d27aa2d8109037ac5c18b6a97ac1964d88f2 (diff)
downloadvyos-1x-d5ac587ac809ebb2f72bc3d39275756934a1f1c7.tar.gz
vyos-1x-d5ac587ac809ebb2f72bc3d39275756934a1f1c7.zip
vti: T2455: add link-local IPv6 address support
Interface should receive an auto generated link-local IPv6 address as we do with all VyOS interfaces by default.
Diffstat (limited to 'python/vyos/ifconfig')
-rw-r--r--python/vyos/ifconfig/vti.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/vyos/ifconfig/vti.py b/python/vyos/ifconfig/vti.py
index c50cd5ce9..dc99d365a 100644
--- a/python/vyos/ifconfig/vti.py
+++ b/python/vyos/ifconfig/vti.py
@@ -1,4 +1,4 @@
-# Copyright 2021 VyOS maintainers and contributors <maintainers@vyos.io>
+# Copyright 2021-2022 VyOS maintainers and contributors <maintainers@vyos.io>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@ -53,3 +53,7 @@ class VTIIf(Interface):
self._cmd(cmd.format(**self.config))
self.set_interface('admin_state', 'down')
+
+ def get_mac(self):
+ """ Get a synthetic MAC address. """
+ return self.get_mac_synthetic()