1
0
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:
Roopa Prabhu
2014-11-28 12:48:01 -08:00
parent 44d3bb5b9d
commit a3b9ac1e99
4 changed files with 15 additions and 11 deletions

View File

@@ -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