def login(self, vmanage_ip, username, password):
    'Login to vmanage'
    base_url_str = ('https://%s:8443/' % vmanage_ip)
    login_action = 'j_security_check'
    login_data = {'j_username': username, 'j_password': password}
    login_url = (base_url_str + login_action)
    url = (base_url_str + login_url)
    sess = requests.session()
    login_response = sess.post(url=login_url, data=login_data, verify=False)
    if (b'<html>' in login_response.content):
        print('Login Failed')
        sys.exit(0)
    self.session[vmanage_ip] = sess
Login to vmanage
def login(self, vmanage_ip, username, password):
    
    base_url_str = ('https://%s:8443/' % vmanage_ip)
    login_action = 'j_security_check'
    login_data = {'j_username': username, 'j_password': password}
    login_url = (base_url_str + login_action)
    url = (base_url_str + login_url)
    sess = requests.session()
    login_response = sess.post(url=login_url, data=login_data, verify=False)
    if (b'<html>' in login_response.content):
        print('Login Failed')
        sys.exit(0)
    self.session[vmanage_ip] = sess