Browse Source

[2417] Initialize standard option definitions and keep them in storage.

Marcin Siodelski 12 years ago
parent
commit
2c70372efd
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/bin/dhcp6/tests/config_parser_unittest.cc

+ 5 - 0
src/bin/dhcp6/tests/config_parser_unittest.cc

@@ -25,6 +25,7 @@
 #include <dhcp6/dhcp6_srv.h>
 #include <dhcp6/config_parser.h>
 #include <config/ccsession.h>
+#include <dhcp/libdhcp++.h>
 #include <dhcp/subnet.h>
 #include <dhcp/cfgmgr.h>
 #include <dhcp/option6_ia.h>
@@ -46,6 +47,10 @@ public:
         // deal with sockets here, just check if configuration handling
         // is sane.
         srv_ = new Dhcpv6Srv(0);
+        // Create instances of option definitions and put them into storage.
+        // This is normally initialized by the server when calling run()
+        // run() function.
+        LibDHCP::initStdOptionDefs(Option::V6);
     }
 
     ~Dhcp6ParserTest() {