ucscsdk/utils/ucscfirmware.py
def _validate_proxy_details(
        proxy_name_or_ip, proxy_port, proxy_username, proxy_password):
    '''
    Internal method to performs proxy arguments validation and returns
    proxy string
    '''
    proxy_str = None

    if (proxy_name_or_ip is None) or (proxy_port is None):
        raise UcscValidationException(
            'proxy_name_or_ip and proxy_port should be specified')

    proxy_str = proxy_name_or_ip + ":" + proxy_port

    if proxy_username != '':
        if proxy_password != '':
            proxy_str = proxy_username + ":" + proxy_password + "@" + \
                proxy_name_or_ip + ":" + proxy_port
        else:
            proxy_str = proxy_username + '@' + \
                proxy_name_or_ip + ":" + proxy_port

    return proxy_str

    Internal method to performs proxy arguments validation and returns
    proxy string
    
Internal method to performs proxy arguments validation and returns
proxy string
Internal method to performs proxy arguments validation and returns proxy string
def _validate_proxy_details(
        proxy_name_or_ip, proxy_port, proxy_username, proxy_password):
    proxy_str = None
    if (proxy_name_or_ip is None) or (proxy_port is None):
        raise UcscValidationException(
            'proxy_name_or_ip and proxy_port should be specified')
    proxy_str = proxy_name_or_ip + ":" + proxy_port
    if proxy_username != '':
        if proxy_password != '':
            proxy_str = proxy_username + ":" + proxy_password + "@" + \
                proxy_name_or_ip + ":" + proxy_port
        else:
            proxy_str = proxy_username + '@' + \
                proxy_name_or_ip + ":" + proxy_port
    return proxy_str
def _validate_proxy_details ( proxy_name_or_ip , proxy_port , proxy_username , proxy_password ) : proxy_str = None if ( proxy_name_or_ip is None ) or ( proxy_port is None ) : raise UcscValidationException ( 'proxy_name_or_ip and proxy_port should be specified' ) proxy_str = proxy_name_or_ip + ":" + proxy_port if proxy_username != '' : if proxy_password != '' : proxy_str = proxy_username + ":" + proxy_password + "@" + proxy_name_or_ip + ":" + proxy_port else : proxy_str = proxy_username + '@' + proxy_name_or_ip + ":" + proxy_port return proxy_str
Internal method to performs proxy arguments validation and returns
proxy string
Internal method to performs proxy arguments validation and returns proxy string
'''
    Internal method to performs proxy arguments validation and returns
    proxy string
    '''
proxy_name_or_ip
proxy_port
proxy_username
proxy_password