Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mas_ip = mas_details.get('ip')
- mas_username = mas_details.get('username', 'nsroot')
- mas_password = mas_details.get('password', 'nsroot')
- mas_timeout = mas_details.get('timeout', 120)
- mas_protocol = mas_details.get('protocol', 'http')
- # Extract device details
- device_ip = device_details.get('ip')
- device_username = device_details.get('username', 'nsroot')
- device_password = device_details.get('password', 'nsroot')
- device_type = device_details.get('type')
- if not device_ip or not mas_ip or not device_type:
- logger_object.critical("Details not provided - MAS IP: " + str(mas_ip) + ", Device IP: " + str(device_ip) + ", Device Type: " + str(device_type))
- return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement