mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 22:45:18 +00:00
updated example bindctl session
fixed bindctl> config revert command (called wrong function) git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1364 e5f2f494-b856-4b98-b285-d166d9295462
This commit is contained in:
60
README
60
README
@@ -86,31 +86,55 @@ EXAMPLE SESSION
|
|||||||
|
|
||||||
~> bindctl
|
~> bindctl
|
||||||
["login success "] login as root
|
["login success "] login as root
|
||||||
|
> help
|
||||||
|
BindCtl, verstion 0.1
|
||||||
|
usage: <module name> <command name> [param1 = value1 [, param2 = value2]]
|
||||||
|
Type Tab character to get the hint of module/command/paramters.
|
||||||
|
Type "help(? h)" for help on bindctl.
|
||||||
|
Type "<module_name> help" for help on the specific module.
|
||||||
|
Type "<module_name> <command_name> help" for help on the specific command.
|
||||||
|
|
||||||
|
Available module names:
|
||||||
|
help Get help for bindctl
|
||||||
|
config Configuration commands
|
||||||
|
Xfrin same here
|
||||||
|
Auth same here
|
||||||
|
Boss same here
|
||||||
|
> config help
|
||||||
|
Module config Configuration commands
|
||||||
|
Available commands:
|
||||||
|
help (Get help for module)
|
||||||
|
show (Show configuration)
|
||||||
|
add (Add entry to configuration list)
|
||||||
|
remove (Remove entry from configuration list)
|
||||||
|
set (Set a configuration value)
|
||||||
|
unset (Unset a configuration value)
|
||||||
|
diff (Show all local changes)
|
||||||
|
revert (Revert all local changes)
|
||||||
|
commit (Commit all local changes)
|
||||||
|
go (Go to a specific configuration part)
|
||||||
> config show
|
> config show
|
||||||
|
Xfrin/ module
|
||||||
Auth/ module
|
Auth/ module
|
||||||
Boss/ module
|
Boss/ module
|
||||||
> config show Auth/
|
> config show Xfrin
|
||||||
database_file: b10-auth.db string
|
transfers_in: 10 integer
|
||||||
zone_list/ list
|
|
||||||
> config go Auth
|
> config go Auth
|
||||||
/Auth> config show
|
/Auth> config show
|
||||||
database_file: b10-auth.db string
|
database_file: None string
|
||||||
zone_list/ list
|
/Auth> config set database_file /tmp/bind10_zones.db
|
||||||
/Auth> config show zone_list
|
/Auth> config commit
|
||||||
/Auth> config add zone example.com
|
|
||||||
Error: /Auth/zone not found
|
|
||||||
/Auth> config add zone_list example.com
|
|
||||||
/Auth> config show zone_list
|
|
||||||
zone_name: example.com string
|
|
||||||
/Auth> config show
|
|
||||||
database_file: b10-auth.db string
|
|
||||||
zone_list/ list (modified)
|
|
||||||
/Auth> config go /
|
/Auth> config go /
|
||||||
> config show Auth/database_file
|
> config show Auth/
|
||||||
database_file: b10-auth.db string
|
database_file: /tmp/bind10_zones.db string
|
||||||
> config diff
|
> config diff
|
||||||
{'Auth': {'zone_list': ['example.com']}}
|
{}
|
||||||
> config commit
|
> config set Auth/foobar
|
||||||
|
Error: missing identifier or value
|
||||||
|
> config set Auth/database_file foobar
|
||||||
|
> config diff
|
||||||
|
{'Auth': {'database_file': 'foobar'}}
|
||||||
|
> config revert
|
||||||
> config diff
|
> config diff
|
||||||
{}
|
{}
|
||||||
> quit
|
> quit
|
||||||
|
@@ -468,7 +468,7 @@ class BindCmdInterpreter(Cmd):
|
|||||||
elif cmd.command == "unset":
|
elif cmd.command == "unset":
|
||||||
self.config_data.unset(identifier)
|
self.config_data.unset(identifier)
|
||||||
elif cmd.command == "revert":
|
elif cmd.command == "revert":
|
||||||
self.config_data.revert()
|
self.config_data.clear_local_changes()
|
||||||
elif cmd.command == "commit":
|
elif cmd.command == "commit":
|
||||||
self.config_data.commit()
|
self.config_data.commit()
|
||||||
elif cmd.command == "diff":
|
elif cmd.command == "diff":
|
||||||
|
Reference in New Issue
Block a user