def vif_details_bridge_name_handler(resource, event, set_br_name, **kwargs):
 port = kwargs['port']
 if ('trunk_details' in port):
  set_br_name(utils.gen_trunk_br_name(port['trunk_details']['trunk_id']))

def vif_details_bridge_name_handler ( resource , event , set_br_name , ** kwargs ) : port = kwargs [ 'port' ] if ( 'trunk_details' in port ) : set_br_name ( utils . gen_trunk_br_name ( port [ 'trunk_details' ] [ 'trunk_id' ] ) )
if port is a trunk port .