mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Always set lacp-bypass-allow value to default if lacp-bypass-allow is
not given by the user Ticket: CM-4552 Reviewed By: Testing Done: Tested with and without lacp-bypass-allow in the file
This commit is contained in:
@@ -158,6 +158,11 @@ class ifenslave(moduleBase):
|
||||
int(attrval) > int(validrange[1])):
|
||||
raise Exception(msg + ' Valid range is [%s,%s]'
|
||||
%(validrange[0], validrange[1]))
|
||||
elif attrname in ['bond-lacp-bypass-allow']:
|
||||
# For some attrs, set default values
|
||||
optiondict = self.get_mod_attr(attrname)
|
||||
if optiondict:
|
||||
return optiondict.get('default')
|
||||
return attrval
|
||||
|
||||
def _apply_master_settings(self, ifaceobj):
|
||||
|
Reference in New Issue
Block a user