diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-09-25 20:48:15 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-09-25 20:48:15 +0200 |
commit | 818a75c024e4b4c0403ccfe782fb55517f390bef (patch) | |
tree | c4e91ddc0429694d5c294c3651f7a647a432ef43 /python/vyos | |
parent | 49a79954373eb3f70eddb444e855ed744a322e58 (diff) | |
download | vyos-1x-818a75c024e4b4c0403ccfe782fb55517f390bef.tar.gz vyos-1x-818a75c024e4b4c0403ccfe782fb55517f390bef.zip |
ifconfig: T2653: get_mtu() should return int() for easier comparison
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/ifconfig/interface.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py index c8ba05edd..a0f0ffe04 100644 --- a/python/vyos/ifconfig/interface.py +++ b/python/vyos/ifconfig/interface.py @@ -321,7 +321,7 @@ class Interface(Control): >>> Interface('eth0').get_mtu() '1500' """ - return self.get_interface('mtu') + return int(self.get_interface('mtu')) def set_mtu(self, mtu): """ |