'Enable EVN BGP or BGP EVPN to advertise host information'

def config_host_collect_protocal(self):

    cmd = 'host    collect    protocol    bgp'
    exist = is_config_exist(self.config, cmd)
    if (self.state == 'present'):
        if ((self.host_collect_protocol == 'bgp') and (not exist)):
            self.cli_add_command(cmd)
        elif ((self.host_collect_protocol == 'none') and exist):
            self.cli_add_command(cmd, undo=True)
    elif ((self.host_collect_protocol == 'bgp') and exist):
        self.cli_add_command(cmd, undo=True)
