def __init__(self, hostname, username, password, use_ssl=True): """ Represents a device running EOS. The object will contain the following interesting attributes: * **running_config** - The configuration retrieved from the device using the method load_running_config * **candidate_config** - The configuration we desire for the device. Can be populated using the method load_candidate_config :param hostname: IP or FQDN of the device you want to connect to :param username: Username :param password: Password :param use_ssl: If set you True we will connect to the eAPI using https, otherwise http will be used """ self.hostname = hostname self.username = username self.device = None self.password = password self.use_ssl = use_ssl self.running_config = EOSConf('running') self.candidate_config = EOSConf('candidate') self.original_config = None