#NEWLINE# def _get_sg_ids_set_for_ports( self , filtered_ports ) : #NEWLINE# #INDENT# 'Get the port security group ids as a set.' #NEWLINE# port_group_ids = set ( ) #NEWLINE# for port in filtered_ports : #NEWLINE# #INDENT# port_group_ids . update ( port . get ( 'security_groups' , [ ] ) ) #NEWLINE# #UNINDENT# return self