Skip to content

Instantly share code, notes, and snippets.

@mbrenig
Forked from anonymous/gist:5664828
Last active December 17, 2015 19:59
Show Gist options
  • Save mbrenig/5664858 to your computer and use it in GitHub Desktop.
Save mbrenig/5664858 to your computer and use it in GitHub Desktop.
#-------------------------------------------------------------------------
# Set up access mappings here.
#-------------------------------------------------------------------------
line_updated = False
if device_cutsheet_manager != None:
# Try the device cutsheet manager first.
line_updated = device_cutsheet_manager.set_access_info(lineinfo)
if not line_updated and gr303_cutsheet_manager != None:
# Then try the gr303 cutsheet manager if line not found in device cutsheet.
line_updated = gr303_cutsheet_manager.set_access_info(lineinfo)
if not line_updated:
log_msg(LOG_ALERT,"Cutsheet lineinfo update failed, DN %s." % lineinfo[si.DN])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment