'Judge whether current config is the same as what we excepted'

def check_config_if_same(self):

    if (self.state == 'absent'):
        return False
    else:
        if (self.enable and (self.enable != self.dldp_intf_conf['dldpEnable'])):
            return False
        if (self.mode_enable and (self.mode_enable != self.dldp_intf_conf['dldpCompatibleEnable'])):
            return False
        if self.local_mac:
            flag = judge_is_mac_same(self.local_mac, self.dldp_intf_conf['dldpLocalMac'])
            if (not flag):
                return False
        if (self.reset and (self.reset == 'enable')):
            return False
    return True
