#NEWLINE# def _fake_sg_rules( self , sg_id = FAKE_SGID , remote_groups = None ) : #NEWLINE# #INDENT# remote_groups = ( remote_groups or { #NEWLINE# #INDENT# constants . IPv4 : [ FAKE_SGID ] , #NEWLINE# constants . IPv6 : [ FAKE_SGID ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# rules = [ ] #NEWLINE# for ( ip_version , remote_group_list ) in six . iteritems ( remote_groups ) : #NEWLINE# #INDENT# for remote_group in remote_group_list : #NEWLINE# #INDENT# rules . append ( self . _fake_sg_rule_for_ethertype ( ip_version , remote_group ) ) #NEWLINE# #UNINDENT# #UNINDENT# return { #NEWLINE# #INDENT# sg_id : rules , #NEWLINE# #UNINDENT# }