Browse Source

update README with example bindctl session for current Auth
(note that these are just examples, and the configuration name/values are going to change, for instance zone_list will probably be removed and serves just so we have an example of list manipulation here)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1046 e5f2f494-b856-4b98-b285-d166d9295462

Jelte Jansen 15 years ago
parent
commit
f21f008696
1 changed files with 29 additions and 38 deletions
  1. 29 38
      README

+ 29 - 38
README

@@ -80,46 +80,37 @@ config add [identifier] <value>: add a value to a list
 config remove [identifier] <value>: remove a value from a list 
 config remove [identifier] <value>: remove a value from a list 
 config revert:	Revert all changes that have not been committed
 config revert:	Revert all changes that have not been committed
 config commit: Commit all changes
 config commit: Commit all changes
-
+config diff: Show the changes that have not been committed yet
 
 
 EXAMPLE SESSION
 EXAMPLE SESSION
 
 
 ~> bindctl
 ~> bindctl
+["login success "] login as root
 > config show
 > config show
-ParkingLot/	module	
+Auth/	module	
-> config show ParkingLot/
+Boss/	module	
-port:	5300	integer	(default)
+> config show Auth/
-zones/	list	
+database_file:	b10-auth.db	string	
-a_records/	list	(default)
+zone_list/	list	
-aaaa_records/	list	(default)
+> config go Auth
-ns_records/	list	(default)
+/Auth> config show
-> config go ParkingLot/
+database_file:	b10-auth.db	string	
-/ParkingLot> config show
+zone_list/	list	
-port:	5300	integer	(default)
+/Auth> config show zone_list
-zones/	list	
+/Auth> config add zone example.com
-a_records/	list	(default)
+Error: /Auth/zone not found
-aaaa_records/	list	(default)
+/Auth> config add zone_list example.com
-ns_records/	list	(default)
+/Auth> config show zone_list
-/ParkingLot> config show zones
+zone_name:	example.com	string	
-/ParkingLot> config add zone tjeb.nl
+/Auth> config show
-Error: /ParkingLot/zone not found
+database_file:	b10-auth.db	string	
-/ParkingLot> config add zones tjeb.nl
+zone_list/	list	(modified)
-/ParkingLot> config show zones
+/Auth> config go /
-zone_name:	tjeb.nl	string	
+> config show Auth/database_file
-/ParkingLot> config show
+database_file:	b10-auth.db	string	
-port:	5300	integer	(default)
+> config diff
-zones/	list	(modified)
+{'Auth': {'zone_list': ['example.com']}}
-a_records/	list	(default)
+> config commit
-aaaa_records/	list	(default)
+> config diff
-ns_records/	list	(default)
+{}
-/ParkingLot> config go /
+> quit
-> config show ParkingLot/port
-port:	5300	integer	(default)
-> config go ParkingLot/a_records/
-/ParkingLot/a_records> config show
-address:	127.0.0.1	string	
-/ParkingLot/a_records> config add "127.0.0.2"
-/ParkingLot/a_records> config show
-address:	127.0.0.2	string	
-/ParkingLot/a_records> 
-