Action flags lib, flags in all ls, mk, rm tools.
Bases: roster_user_tools.core_flags.CoreFlags
Command line ls flags
Bases: roster_user_tools.core_flags.CoreFlags
Command line mk flags
Bases: roster_user_tools.core_flags.CoreFlags
Command line rm flags
Bases: roster_user_tools.core_flags.CoreFlags
Command line up flags
Common library for DNS management command line tools.
Prints standardized client error message to screen.
Prints standardized warning message to screen.
Opens a file in a text editor in the EDITOR env variable for editing
Prints a table with aligned columns.
Prints hosts in an /etc/hosts format
Prints sorted hosts in a nice usable format
Prints standardized server error message to screen.
Retries records from database and sorts them
Make record library for command line tools.
Command line record library class
Lists records given certain parameters
Connects to server and makes a DNS record.
Connects to server and removes a DNS record.
Core flags lib, flags in all tools.
Bases: object
Command line common library
Adds a key to functions dict
Returns the action the tool should perform
Adds a key to all args portions of functions dicts
Sets self.functions_dict according to functions list
functions: list of strings of functions
Sets the self.functions_dict ex:
- {‘list’: {‘args’: {}, ‘forbidden_args’:{}, ‘independent_args’: [],
- ‘dependent_args’: []},
- {‘remove’: {‘args’: {}, ‘forbidden_args’:{}, ‘independent_args’: [],
- ‘dependent_args’: []}}
The list portion of the dictionary may be populated as shown below:
- {‘list’: {‘args’: {‘user’: True, ‘verbose’: False},
‘forbidden_args’: {‘make_all’: False}, ‘independent_args’: [{‘allow’: False, ‘deny’: False},
{‘quiet’: False, ‘verbose’: False}],‘dependent_args’: [{‘allow’: False, ‘allow_level’: True}]}}
Where ‘user’ is a required argument. The value represents whether or not the argument is required: True/False. Note ‘user’ is the name given in optparse, NOT the flag ‘-u/–user’. Verbose is not a required argument, but is listed in args and should be in case of any code changes. All args should be represented in portions of this dictionary. If ‘user’ is not supplied, the function will exit with error. ‘make_all’ is a forbidden argument. If it is used in this certain portion of a function, the user is probably mistaking what is happening with the command and the function will exit with error. Independent args must not be given simultaneously otherwise the function will exit with error. If these args are required, it will exit with error if one or the other is not specified. Dependent args are arguments that depend on each other, the function will error out if both are not supplied simultaneously.
Data flags lib, flags for each group of tools.
Bases: roster_user_tools.core_flags.CoreFlags
Command line acl flags
Bases: roster_user_tools.core_flags.CoreFlags
Command line audit log flags
Bases: roster_user_tools.core_flags.CoreFlags
Command line bootstrap flags
Bases: roster_user_tools.core_flags.CoreFlags
Command line CNAME flags
Bases: roster_user_tools.core_flags.CoreFlags
Command line credential flags
Bases: roster_user_tools.core_flags.CoreFlags
Command line dns_server flags
Bases: roster_user_tools.core_flags.CoreFlags
Command line formattedrecords flags
Bases: roster_user_tools.core_flags.CoreFlags
Command line group flags
Bases: roster_user_tools.core_flags.CoreFlags
Command line view flags
Bases: roster_user_tools.core_flags.CoreFlags
Command line uphost flags
Bases: roster_user_tools.core_flags.CoreFlags
Command line uphost flags
Bases: roster_user_tools.core_flags.CoreFlags
Command line named global flags
Bases: roster_user_tools.core_flags.CoreFlags
Command line record flags
Bases: roster_user_tools.core_flags.CoreFlags
Command line reserved word flags
Bases: roster_user_tools.core_flags.CoreFlags
Command line set maintenenace flags
Bases: roster_user_tools.data_flags.Group
Bases: roster_user_tools.core_flags.CoreFlags
Command line view flags
Bases: roster_user_tools.core_flags.CoreFlags
Command line zone flags
Client library for XML RPC.
Connects to XML RPC server and runs arbitrary functions.
Checks if credential file is valid.
Does a version check between this client and server
Gets credential string from CredCache.
Bases: exceptions.Exception
Checks credential file if it is valid.
Runs an arbitrary function for SERVER