mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Change case of check strings
Ticket: CM-3346 Reviewed By: cosmetic Testing Done: ifquery check sanity
This commit is contained in:
@@ -336,3 +336,14 @@ class moduleBase(object):
|
||||
# ignore errors
|
||||
pass
|
||||
return (start, end)
|
||||
|
||||
def _handle_reserved_vlan(self, vlanid):
|
||||
""" Helper function to check and warn if the vlanid falls in the
|
||||
reserved vlan range """
|
||||
if vlanid in range(self._resv_vlan_range[0],
|
||||
self._resv_vlan_range[1]):
|
||||
self.logger.warn('skipping reserved vlan %d' %vlanid +
|
||||
' (reserved vlan range %d-%d)' %(self._resv_vlan_range[0],
|
||||
self._resv_vlan_range[1]))
|
||||
return True
|
||||
return False
|
||||
|
Reference in New Issue
Block a user