def update_subports(self, port):
trunk_details = port.get('<STR_LIT>')<EOL>subports = trunk_details['<STR_LIT>']<EOL>host_id = port.get(bc.dns.DNSNAME)<EOL>context = bc.get_context()<EOL>el_context = context.elevated()<EOL>for subport in subports:<EOL><INDENT>bc.get_plugin().update_port(el_context, subport['<STR_LIT>'],<EOL>{'<STR_LIT:port>':<EOL>{bc.portbindings.HOST_ID: host_id,<EOL>'<STR_LIT>': bc.trunk_consts.TRUNK_SUBPORT_OWNER}})<EOL><DEDENT>trunk_obj = bc.trunk_objects.Trunk.get_object(<EOL>el_context, id=trunk_details['<STR_LIT>'])<EOL>trunk_obj.update(status=bc.trunk_consts.ACTIVE_STATUS)<EOL>
Set port attributes for trunk subports.

        For baremetal deployments only, set the neutron port attributes
        during the bind_port event.