def get_port_profile_for_vlan(self, vlan_id, device_id):
entry = self.session.query(ucsm_model.PortProfile).filter_by(<EOL>vlan_id=vlan_id, device_id=device_id).first()<EOL>return entry.profile_id if entry else None<EOL>
Returns Vlan id associated with the port profile.