diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/yang/yang_revisions.h | 35 | ||||
-rw-r--r-- | src/lib/yang/yang_revisions.h.skel | 27 |
2 files changed, 62 insertions, 0 deletions
diff --git a/src/lib/yang/yang_revisions.h b/src/lib/yang/yang_revisions.h new file mode 100644 index 0000000..91fee57 --- /dev/null +++ b/src/lib/yang/yang_revisions.h @@ -0,0 +1,35 @@ +// Copyright (C) 2018-2023 Internet Systems Consortium, Inc. ("ISC") +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +#ifndef ISC_YANG_REVISIONS_H +#define ISC_YANG_REVISIONS_H 1 + +#include <string> +#include <unordered_map> + +namespace isc { +namespace yang { + +// Table of module name / revision. +static const std::unordered_map<std::string, std::string> YANG_REVISIONS = { +#ifdef KEATEST_MODULE + { "keatest-module", "2022-11-30" }, +#endif // KEATEST_MODULE + { "ietf-dhcpv6-types", "2018-09-04" }, + { "ietf-dhcpv6-options", "2018-09-04" }, + { "ietf-dhcpv6-server", "2018-09-04" }, + { "kea-types", "2019-08-12" }, + { "kea-dhcp-types", "2023-06-28" }, + { "kea-dhcp4-server", "2023-06-28" }, + { "kea-dhcp6-server", "2023-06-28" }, + { "kea-ctrl-agent", "2019-08-12" }, + { "kea-dhcp-ddns", "2022-07-27" } +}; // YANG_REVISIONS + +} // namespace yang +} // namespace isc + +#endif // ISC_YANG_REVISIONS_H diff --git a/src/lib/yang/yang_revisions.h.skel b/src/lib/yang/yang_revisions.h.skel new file mode 100644 index 0000000..826f26e --- /dev/null +++ b/src/lib/yang/yang_revisions.h.skel @@ -0,0 +1,27 @@ +// Copyright (C) 2018-2022 Internet Systems Consortium, Inc. ("ISC") +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +#ifndef ISC_YANG_REVISIONS_H +#define ISC_YANG_REVISIONS_H 1 + +#include <string> +#include <unordered_map> + +namespace isc { +namespace yang { + +// Table of module name / revision. +static const std::unordered_map<std::string, std::string> YANG_REVISIONS = { +// Fill this by: +// cd .../src/share/yang/modules +// sh utils/gen-revisions.sh > r +// insert the r file here +}; // YANG_REVISIONS + +} // namespace yang +} // namespace isc + +#endif // ISC_YANG_REVISIONS_H |