Skip to content
Snippets Groups Projects
Commit 2a0468c0 authored by Erik Reid's avatar Erik Reid
Browse files

renamed variable GB to Gb

parent 9ef24741
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ from inventory_provider.routes import common
logger = logging.getLogger(__name__)
routes = Blueprint('poller-support-routes', __name__)
GB = 1 << 30
Gb = 1 << 30
INTERFACE_LIST_SCHEMA = {
'$schema': 'http://json-schema.org/draft-07/schema#',
......@@ -307,11 +307,11 @@ def interface_speed(ifc):
def _name_to_speed(ifc_name):
if ifc_name.startswith('ge'):
return GB
return Gb
if ifc_name.startswith('xe'):
return 10 * GB
return 10 * Gb
if ifc_name.startswith('et'):
return 100 * GB
return 100 * Gb
logger.warning(f'unrecognized interface name: {ifc_name}')
return -1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment