#50149 Ticket 49994 - Adjust dsconf backend usage
Closed 3 years ago by spichugi. Opened 5 years ago by mreynolds.
mreynolds/389-ds-base backend_cli  into  master

@@ -619,20 +619,6 @@ 

      get_subsuffix_parser.add_argument('--suffix', action='store_true', help='Just display the suffix, and not the backend name')

      get_subsuffix_parser.add_argument('be_name', help='The backend name or suffix to search for sub-suffixes')

  

-     # Create a new backend database

-     create_parser = suffix_subcommands.add_parser('create', help='create')

-     create_parser.set_defaults(func=backend_create)

-     create_parser.add_argument('--parent-suffix', default=False,

-                                help="Sets the parent suffix only if this backend is a sub-suffix")

-     create_parser.add_argument('--suffix', required=True, help='The database suffix DN, for example "dc=example,dc=com"')

-     create_parser.add_argument('--be-name', required=True, help='The database backend name, for example "userroot"')

-     create_parser.add_argument('--create-entries', action='store_true', help='Create sample entries in the database')

- 

-     # Delete backend

-     delete_parser = suffix_subcommands.add_parser('delete', help='deletes a backend database')

-     delete_parser.set_defaults(func=backend_delete)

-     delete_parser.add_argument('be_name', help='The backend name or suffix to delete')

- 

      # Set the backend/suffix configuration

      set_backend_parser = suffix_subcommands.add_parser('set', help='Set configuration settings for a single backend')

      set_backend_parser.set_defaults(func=backend_set)
@@ -700,7 +686,7 @@ 

      #############################################

      # VLV parser

      #############################################

-     vlv_parser = subcommands.add_parser('vlv', help="Manage VLV searches and indexes")

+     vlv_parser = subcommands.add_parser('vlv-index', help="Manage VLV searches and indexes")

      vlv_subcommands = vlv_parser.add_subparsers(help="action")

  

      # List VLV Searches
@@ -895,3 +881,21 @@ 

                                 help="Specifies the suffixes or the subtrees to be included.")

      export_parser.add_argument('-x', '--exclude-suffixes', nargs='+',

                                 help="Specifies the suffixes to be excluded.")

+ 

+     #######################################################

+     # Create a new backend database

+     #######################################################

+     create_parser = subcommands.add_parser('create', help='create')

+     create_parser.set_defaults(func=backend_create)

+     create_parser.add_argument('--parent-suffix', default=False,

+                                help="Sets the parent suffix only if this backend is a sub-suffix")

+     create_parser.add_argument('--suffix', required=True, help='The database suffix DN, for example "dc=example,dc=com"')

+     create_parser.add_argument('--be-name', required=True, help='The database backend name, for example "userroot"')

+     create_parser.add_argument('--create-entries', action='store_true', help='Create sample entries in the database')

+ 

+     #######################################################

+     # Delete backend

+     #######################################################

+     delete_parser = subcommands.add_parser('delete', help='deletes a backend database')

+     delete_parser.set_defaults(func=backend_delete)

+     delete_parser.add_argument('be_name', help='The backend name or suffix to delete') 

\ No newline at end of file

@@ -252,7 +252,7 @@ 

      edit_link_parser.add_argument('--bind-dn', help="DN of the administrative entry used to communicate with the remote server")

      edit_link_parser.add_argument('--bind-pw', help="Password for the administrative user.")

  

-     delete_link_parser = subcommands.add_parser('link-delete', help='Create a database link to a remote server')

+     delete_link_parser = subcommands.add_parser('link-delete', help='Delete a database link')

      delete_link_parser.set_defaults(func=delete_link)

      delete_link_parser.add_argument('CHAIN_NAME', nargs=1, help='The name of the database link')

  

Description:

Slightly rearrange the backend usage to move create/delete to main subcommands instead of being under suffix.

https://pagure.io/389-ds-base/issue/49994

rebased onto c1f96bd

5 years ago

Pull-Request has been merged by mreynolds

5 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This pull request has been cloned to Github as issue and is available here:
- https://github.com/389ds/389-ds-base/issues/3208

If you want to continue to work on the PR, please navigate to the github issue,
download the patch from the attachments and file a new pull request.

Thank you for understanding. We apologize for all inconvenience.

Pull-Request has been closed by spichugi

3 years ago