'Get end state'

def get_end_state(self):

    if self.version:
        version = self.get_snmp_version()
        if version:
            self.end_state['version'] = version
    if self.connect_port:
        tmp_cfg = self.cli_get_connect_port()
        if tmp_cfg:
            temp_data = tmp_cfg.split('udp-port    ')
            self.end_state['connect    port'] = temp_data[1]
    if self.host_name:
        self.end_state['target    host    info'] = self.end_netconf_cfg['target_host_info']
