code: def create(cls, cli, sp, ip_port, ip_address, netmask=None,
                 v6_prefix_length=None, gateway=None, vlan_id=None):
          
          req_body = cli.make_body(sp=sp, ipPort=ip_port,
                                   ipAddress=ip_address, netmask=netmask,
                                   v6PrefixLength=v6_prefix_length,
                                   gateway=gateway, vlanId=vlan_id)
  
          resp = cli.post(cls().resource_class, **req_body)
          resp.raise_if_err()
          return cls.get(cli, resp.resource_id)
docs: Creates a replication interface.
  
          :param cls: this class.
          :param cli: the rest cli.
          :param sp: `UnityStorageProcessor` object. Storage processor on which
              the replication interface is running.
          :param ip_port: `UnityIpPort` object. Physical port or link aggregation
              on the storage processor on which the interface is running.
          :param ip_address: IP address of the replication interface.
          :param netmask: IPv4 netmask for the replication interface, if it uses
              an IPv4 address.
          :param v6_prefix_length: IPv6 prefix length for the interface, if it
              uses an IPv6 address.
          :param gateway: IPv4 or IPv6 gateway address for the replication
              interface.
          :param vlan_id: VLAN identifier for the interface.
          :return: the newly create replication interface.