Commit 942efee2 authored by Mark Schouten's avatar Mark Schouten
Browse files

Allow 'autoconfigure' as a config field

parent 81e95439
......@@ -119,7 +119,7 @@ def Validate(document):
raise ValueError("Invalid value for lacp_rate")
def Interface(iface, iname):
known_fields = [ 'vaddresses', 'description', 'name', 'addresses', 'adminstate', 'mtu', 'ratelimit', 'slaves', 'type', 'vlanid', 'parent', 'bond-mode', 'miimon', 'lacp_rate' ]
known_fields = [ 'vaddresses', 'description', 'name', 'addresses', 'adminstate', 'mtu', 'ratelimit', 'slaves', 'type', 'vlanid', 'parent', 'bond-mode', 'miimon', 'lacp_rate', 'autoconfigure' ]
for f in iface.keys():
if f not in known_fields:
raise ValueError("Invalid field in config for interface %s: %s" % (iname, f))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment