code: def grant_access(src, dst='any', port=None, proto=None, index=None):
      
      return modify_access(src, dst=dst, port=port, proto=proto, action='allow',
                           index=index)
docs: Grant access to an address or subnet
  
      :param src: address (e.g. 192.168.1.234) or subnet
                  (e.g. 192.168.1.0/24).
      :param dst: destiny of the connection, if the machine has multiple IPs and
                  connections to only one of those have to accepted this is the
                  field has to be set.
      :param port: destiny port
      :param proto: protocol (tcp or udp)
      :param index: if different from None the rule is inserted at the given
                    `index`.