mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
0c0e15d4e9
commit
0a8952f6ac
1 changed files with 1 additions and 8 deletions
|
@ -561,7 +561,7 @@ def _parse_settings_eth(opts, iface_type, enabled, iface):
|
|||
if 'mtu' in opts:
|
||||
try:
|
||||
result['mtu'] = int(opts['mtu'])
|
||||
except Exception:
|
||||
except ValueError:
|
||||
_raise_error_iface(iface, 'mtu', ['integer'])
|
||||
|
||||
if iface_type not in ['bridge']:
|
||||
|
@ -632,13 +632,6 @@ def _parse_settings_eth(opts, iface_type, enabled, iface):
|
|||
if opt in opts:
|
||||
result[opt] = opts[opt]
|
||||
|
||||
if 'mtu' in opts:
|
||||
try:
|
||||
int(opts['mtu'])
|
||||
result['mtu'] = opts['mtu']
|
||||
except Exception:
|
||||
_raise_error_iface(iface, 'mtu', ['integer'])
|
||||
|
||||
if 'ipv6_autoconf' in opts:
|
||||
result['ipv6_autoconf'] = opts['ipv6_autoconf']
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue