original_docstring: Compose and return a reverse rule for r if reflexive_acls is False
  
          Arguments:
          r - rule dictionary returned by the _to_acl_rule(r) method above
          swap src and dst IP and port ranges to match return traffic for r
          
docstring: Compose and return a reverse rule for r if reflexive_acls is False
  Arguments:
  r - rule dictionary returned by the _to_acl_rule(r) method above
  swap src and dst IP and port ranges to match return traffic for r
docstring_tokens: Compose and return a reverse rule for r if reflexive_acls is False Arguments : r - rule dictionary returned by the _to_acl_rule ( r ) method above swap src and dst IP and port ranges to match return traffic for r
code: def _reverse_rule(self, r):
          """Compose and return a reverse rule for r if reflexive_acls is False
  
          Arguments:
          r - rule dictionary returned by the _to_acl_rule(r) method above
          swap src and dst IP and port ranges to match return traffic for r
          """
          acl_rule = {}
          # 1 == Permit rule and 0 == deny rule
          acl_rule['is_permit'] = r['is_permit']
          acl_rule['proto'] = r['proto']
          # All TCP/UDP IPv4 and IPv6 traffic
          if r['proto'] in [6, 17, 0]:
              acl_rule['src_prefix'] = r['dst_prefix']
              acl_rule['dst_prefix'] = r['src_prefix']
              # Swap port range values
              acl_rule['srcport_or_icmptype_first'] = \
                  r['dstport_or_icmpcode_first']
              acl_rule['srcport_or_icmptype_last'] = \
                  r['dstport_or_icmpcode_last']
              acl_rule['dstport_or_icmpcode_first'] = \
                  r['srcport_or_icmptype_first']
              acl_rule['dstport_or_icmpcode_last'] = \
                  r['srcport_or_icmptype_last']
          return acl_rule
code_tokens: def _reverse_rule ( self , r ) : acl_rule = { } acl_rule [ 'is_permit' ] = r [ 'is_permit' ] acl_rule [ 'proto' ] = r [ 'proto' ] if r [ 'proto' ] in [ 6 , 17 , 0 ] : acl_rule [ 'src_prefix' ] = r [ 'dst_prefix' ] acl_rule [ 'dst_prefix' ] = r [ 'src_prefix' ] acl_rule [ 'srcport_or_icmptype_first' ] = r [ 'dstport_or_icmpcode_first' ] acl_rule [ 'srcport_or_icmptype_last' ] = r [ 'dstport_or_icmpcode_last' ] acl_rule [ 'dstport_or_icmpcode_first' ] = r [ 'srcport_or_icmptype_first' ] acl_rule [ 'dstport_or_icmpcode_last' ] = r [ 'srcport_or_icmptype_last' ] return acl_rule
short_docstring: Compose and return a reverse rule for r if reflexive_acls is False
  Arguments:
  r - rule dictionary returned by the _to_acl_rule(r) method above
  swap src and dst IP and port ranges to match return traffic for r
short_docstring_tokens: Compose and return a reverse rule for r if reflexive_acls is False Arguments : r - rule dictionary returned by the _to_acl_rule ( r ) method above swap src and dst IP and port ranges to match return traffic for r
comment: """Compose and return a reverse rule for r if reflexive_acls is False
  
          Arguments:
          r - rule dictionary returned by the _to_acl_rule(r) method above
          swap src and dst IP and port ranges to match return traffic for r
          """$SEP$# 1 == Permit rule and 0 == deny rule$SEP$# All TCP/UDP IPv4 and IPv6 traffic$SEP$# Swap port range values