'Initializing the client with the parameters passed.
Creates authentication token and authenticate with switch
to ensure the credentials are correct and change the VF context.
:param ipaddress: IP Address of the device.
:param username: User id to login.
:param password: User password.
:param port: Device Communication port
:param vfid: Virtual Fabric ID.
:param protocol: Communication Protocol.'

def __init__(self, ipaddress, username, password, port, vfid, protocol):

    self.switch_ip = ipaddress
    self.switch_user = username
    self.switch_pwd = password
    self.protocol = protocol
    self.vfid = vfid
    self.cfgs = {}
    self.zones = {}
    self.alias = {}
    self.qlps = {}
    self.ifas = {}
    self.active_cfg = ''
    self.parsed_raw_zoneinfo = ''
    self.random_no = ''
    self.session = None
    self.auth_header = self.create_auth_token()
    (self.is_auth, self.auth_header) = self.authenticate()
    self.check_change_vf_context()
