def validators(self): return { "iscsi.initiator_name": valid.IQN(), "nfsv4.domain": (valid.Empty() | valid.FQDN()), }
def update(self, name, target_name, target_host, target_port): # FIXME add more validation valid.IQN()(name) (valid.Empty(or_none=True) | valid.IQN())(target_name) (valid.Empty(or_none=True) | valid.FQDNOrIPAddress())(target_host) (valid.Empty(or_none=True) | valid.Port())(target_port)