Browse Source

[2637] Enable setting FQDN for options.

Marcin Siodelski 12 years ago
parent
commit
ea6e8ea2e2
1 changed files with 2 additions and 8 deletions
  1. 2 8
      src/lib/dhcp/option_definition.cc

+ 2 - 8
src/lib/dhcp/option_definition.cc

@@ -411,14 +411,8 @@ OptionDefinition::writeToBuffer(const std::string& value,
         OptionDataTypeUtil::writeString(value, buf);
         return;
     case OPT_FQDN_TYPE:
-        {
-            // FQDN implementation is not terribly complicated but will require
-            // creation of some additional logic (maybe object) that will parse
-            // the fqdn into labels.
-            isc_throw(isc::NotImplemented, "write of FQDN record into option buffer"
-                      " is not supported yet");
-            return;
-        }
+        OptionDataTypeUtil::writeFqdn(value, buf);
+        return;
     default:
         // We hit this point because invalid option data type has been specified
         // This may be the case because 'empty' or 'record' data type has been