Signed-off-by: Jan Tluka jtluka@redhat.com --- lnst/Devices/VxlanDevice.py | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/lnst/Devices/VxlanDevice.py b/lnst/Devices/VxlanDevice.py index 1426d3e2..d3c7c55c 100644 --- a/lnst/Devices/VxlanDevice.py +++ b/lnst/Devices/VxlanDevice.py @@ -117,3 +117,13 @@ class VxlanDevice(SoftDevice): if val: self._set_linkinfo_data_attr("IFLA_VXLAN_COLLECT_METADATA", True) self._nl_link_sync("set") + + @property + def gpe(self): + return self._get_linkinfo_data_attr("IFLA_VXLAN_GPE") is not None + + @gpe.setter + def gpe(self, val): + if val: + self._set_linkinfo_data_attr("IFLA_VXLAN_GPE", True) + self._nl_link_sync("set")