def _get_vif_instance(vif, cls, **kwargs):
 return cls(id=vif['id'], address=vif['address'], network=_nova_to_osvif_network(vif['network']), has_traffic_filtering=vif.is_neutron_filtering_enabled(), preserve_on_delete=vif['preserve_on_delete'], active=vif['active'], **kwargs)

def _get_vif_instance ( vif , cls , ** kwargs ) : return cls ( id = vif [ 'id' ] , address = vif [ 'address' ] , network = _nova_to_osvif_network ( vif [ 'network' ] ) , has_traffic_filtering = vif . is_neutron_filtering_enabled ( ) , preserve_on_delete = vif [ 'preserve_on_delete' ] , active = vif [ 'active' ] , ** kwargs )
instantiate an os-vif vif instance .