README 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. BUILDING
  2. Simple build instructions:
  3. autoreconf
  4. ./configure
  5. make
  6. Requires autoconf 2.59 or newer.
  7. Use automake-1.11 or better for working Python 3.1 tests.
  8. Doing code coverage tests:
  9. make coverage
  10. Does the following:
  11. make clean-coverage
  12. Zeroes the lcov code coverage counters and removes the coverage HTML.
  13. make perform-coverage
  14. Runs the C++ tests (using googletests framework).
  15. make report-coverage
  16. Generates the coverage HTML, excluding some unrelated headers.
  17. The HTML reports are placed in a directory called coverage/.
  18. RUNNING
  19. At the moment there is no install yet, you can run the bind10 parkinglot
  20. server from the source tree:
  21. ./src/bin/bind10/bind10
  22. The server will listen on port 5300 for DNS requests.
  23. CONFIGURATION
  24. Commands can be given through the tool bigtool;
  25. cd src/bin/bigtool
  26. sh run_bigtool
  27. The server must be running for bigtool to work.
  28. The following configuration commands are available
  29. help: show the different command modules
  30. <module> help: show the commands for module
  31. <module> <command> help: show info for the command
  32. config show [identifier]: Show the currently set values. If no identifier is
  33. given, the current location is used. If a config
  34. option is a list or a map, the value is not
  35. shown directly, but must be requested separately.
  36. config go [identifier]: Go to the given location within the configuration.
  37. config set [identifier] <value>: Set a configuration value.
  38. config unset [identifier]: Remove a value (reverts to default if the option
  39. is mandatory).
  40. config add [identifier] <value>: add a value to a list
  41. config remove [identifier] <value>: remove a value from a list
  42. config revert: Revert all changes that have not been committed
  43. config commit: Commit all changes
  44. EXAMPLE SESSION
  45. ~> sh run_bigtool
  46. > config show
  47. ParkingLot/ module
  48. > config show ParkingLot/
  49. port: 5300 integer (default)
  50. zones/ list
  51. a_records/ list (default)
  52. aaaa_records/ list (default)
  53. ns_records/ list (default)
  54. > config go ParkingLot/
  55. /ParkingLot> config show
  56. port: 5300 integer (default)
  57. zones/ list
  58. a_records/ list (default)
  59. aaaa_records/ list (default)
  60. ns_records/ list (default)
  61. /ParkingLot> config show zones
  62. /ParkingLot> config add zone tjeb.nl
  63. Error: /ParkingLot/zone not found
  64. /ParkingLot> config add zones tjeb.nl
  65. /ParkingLot> config show zones
  66. zone_name: tjeb.nl string
  67. /ParkingLot> config show
  68. port: 5300 integer (default)
  69. zones/ list (modified)
  70. a_records/ list (default)
  71. aaaa_records/ list (default)
  72. ns_records/ list (default)
  73. /ParkingLot> config go /
  74. > config show ParkingLot/port
  75. port: 5300 integer (default)
  76. > config go ParkingLot/a_records/
  77. /ParkingLot/a_records> config show
  78. address: 127.0.0.1 string
  79. /ParkingLot/a_records> config add "127.0.0.2"
  80. /ParkingLot/a_records> config show
  81. address: 127.0.0.2 string
  82. /ParkingLot/a_records>