Signed-off-by: Jan Tluka jtluka@redhat.com --- lnst/Devices/VxlanDevice.py | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/lnst/Devices/VxlanDevice.py b/lnst/Devices/VxlanDevice.py index d3c7c55c..380bdeb9 100644 --- a/lnst/Devices/VxlanDevice.py +++ b/lnst/Devices/VxlanDevice.py @@ -127,3 +127,12 @@ class VxlanDevice(SoftDevice): if val: self._set_linkinfo_data_attr("IFLA_VXLAN_GPE", True) self._nl_link_sync("set") + + @property + def learning(self): + return self._get_linkinfo_data_attr("IFLA_VXLAN_LEARNING") + + @learning.setter + def learning(self, val): + self._set_linkinfo_data_attr("IFLA_VXLAN_LEARNING", val) + self._nl_link_sync("set")