]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1866] added one special RRclass constant by hand: NONE
authorJINMEI Tatuya <jinmei@isc.org>
Sat, 26 Jan 2013 04:22:08 +0000 (20:22 -0800)
committerJINMEI Tatuya <jinmei@isc.org>
Sat, 26 Jan 2013 04:22:08 +0000 (20:22 -0800)
src/lib/dns/python/pydnspp.cc

index 26fb11758e0e694bac2cb393a55b570edfe40d47..d6f3046b5da6605acc8e5f7f657008511bb15168 100644 (file)
@@ -435,6 +435,10 @@ initModulePart_RRClass(PyObject* mod) {
 
         // Incorporate auto-generated RRClass constants
 #include <dns/python/rrclass_constants_inc.cc>
+
+        // We still need to define some special classes by hand (for now)
+        installClassVariable(rrclass_type, "NONE",
+                             createRRClassObject(RRClass::NONE()));
     } catch (const std::exception& ex) {
         const std::string ex_what =
             "Unexpected failure in RRClass initialization: " +