topology: treat server suffix as multivalued attribute in API

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
Petr Vobornik 2015-10-29 19:01:09 +01:00
parent b4aa222e42
commit c688954c27
4 changed files with 5 additions and 5 deletions

View File

@ -3827,7 +3827,7 @@ option: Flag('all', autofill=True, cli_name='all', default=False, exclude='webui
option: Str('cn', attribute=True, autofill=False, cli_name='name', multivalue=False, primary_key=True, query=True, required=False) option: Str('cn', attribute=True, autofill=False, cli_name='name', multivalue=False, primary_key=True, query=True, required=False)
option: Int('ipamaxdomainlevel', attribute=True, autofill=False, cli_name='maxlevel', multivalue=False, query=True, required=False) option: Int('ipamaxdomainlevel', attribute=True, autofill=False, cli_name='maxlevel', multivalue=False, query=True, required=False)
option: Int('ipamindomainlevel', attribute=True, autofill=False, cli_name='minlevel', multivalue=False, query=True, required=False) option: Int('ipamindomainlevel', attribute=True, autofill=False, cli_name='minlevel', multivalue=False, query=True, required=False)
option: Str('iparepltopomanagedsuffix', attribute=True, autofill=False, cli_name='suffix', multivalue=False, query=True, required=False) option: Str('iparepltopomanagedsuffix', attribute=True, autofill=False, cli_name='suffix', multivalue=True, query=True, required=False)
option: Flag('pkey_only?', autofill=True, default=False) option: Flag('pkey_only?', autofill=True, default=False)
option: Flag('raw', autofill=True, cli_name='raw', default=False, exclude='webui') option: Flag('raw', autofill=True, cli_name='raw', default=False, exclude='webui')
option: Int('sizelimit?', autofill=False, minvalue=0) option: Int('sizelimit?', autofill=False, minvalue=0)

View File

@ -90,5 +90,5 @@ IPA_DATA_VERSION=20100614120000
# # # #
######################################################## ########################################################
IPA_API_VERSION_MAJOR=2 IPA_API_VERSION_MAJOR=2
IPA_API_VERSION_MINOR=158 IPA_API_VERSION_MINOR=159
# Last change: mbasti - allow multiple managers: (stage)user-{add|remove}-manager commands # Last change: pvoborni - treat server's suffix as multivalued attribute in API

View File

@ -220,7 +220,7 @@ return {
{ name: 'cn', read_only: true }, { name: 'cn', read_only: true },
{ name: 'ipamindomainlevel', read_only: true }, { name: 'ipamindomainlevel', read_only: true },
{ name: 'ipamaxdomainlevel', read_only: true }, { name: 'ipamaxdomainlevel', read_only: true },
{ name: 'iparepltopomanagedsuffix', read_only: true } { $type: 'multivalued', name: 'iparepltopomanagedsuffix', read_only: true }
] ]
} }
] ]

View File

@ -54,7 +54,7 @@ class server(LDAPObject):
doc=_('IPA server hostname'), doc=_('IPA server hostname'),
), ),
Str( Str(
'iparepltopomanagedsuffix', 'iparepltopomanagedsuffix*',
cli_name='suffix', cli_name='suffix',
label=_('Managed suffix'), label=_('Managed suffix'),
), ),