ctrl_agent_cfg_mgr.cc 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
  2. //
  3. // This Source Code Form is subject to the terms of the Mozilla Public
  4. // License, v. 2.0. If a copy of the MPL was not distributed with this
  5. // file, You can obtain one at http://mozilla.org/MPL/2.0/.
  6. #include <config.h>
  7. #include <agent/ctrl_agent_cfg_mgr.h>
  8. using namespace isc::dhcp;
  9. using namespace isc::process;
  10. namespace isc {
  11. namespace agent {
  12. CtrlAgentCfgMgr::CtrlAgentCfgMgr()
  13. : DCfgMgrBase(DCfgContextBasePtr(new CtrlAgentCfgContext())) {
  14. }
  15. CtrlAgentCfgMgr::~CtrlAgentCfgMgr() {
  16. }
  17. std::string
  18. CtrlAgentCfgMgr::getConfigSummary(const uint32_t selection) {
  19. return ("Control Agent is currently not configurable.");
  20. }
  21. isc::dhcp::ParserPtr
  22. CtrlAgentCfgMgr::createConfigParser(const std::string& element_id,
  23. const isc::data::Element::Position& pos) {
  24. // Create dummy parser, so as we don't return null pointer.
  25. isc::dhcp::ParserPtr parser;
  26. parser.reset(new Uint32Parser(element_id, getContext()->getUint32Storage()));
  27. return (parser);
  28. }
  29. DCfgContextBasePtr
  30. CtrlAgentCfgMgr::createNewContext() {
  31. return (DCfgContextBasePtr(new CtrlAgentCfgContext()));
  32. }
  33. } // namespace isc::agent
  34. } // namespace isc