'is nve interface mode exist'

def is_nve_mode_exist(self, nve_name, mode):

    if (not self.nve_info):
        return False
    if ((self.nve_info['ifName'] == nve_name) and (self.nve_info['nveType'] == mode)):
        return True
    return False
