From e9ea1a1b6afdd0aa0ebf302a1585ce9eb8b15d38 Mon Sep 17 00:00:00 2001 From: Marcin Siodelski Date: Tue, 28 Nov 2023 13:41:46 +0100 Subject: [PATCH] [#3106] Network state constants further apart --- doc/sphinx/arm/hooks-ha.rst | 2 +- src/lib/dhcpsrv/network_state.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/sphinx/arm/hooks-ha.rst b/doc/sphinx/arm/hooks-ha.rst index 8ad6433fe8..03fc63a77b 100644 --- a/doc/sphinx/arm/hooks-ha.rst +++ b/doc/sphinx/arm/hooks-ha.rst @@ -2411,7 +2411,7 @@ responding to clients. "command": "ha-sync-complete-notify", "service": [ "dhcp4" ], "arguments": { - "origin": 1100, + "origin": 2000, "server-name": "server2" } } diff --git a/src/lib/dhcpsrv/network_state.h b/src/lib/dhcpsrv/network_state.h index b3d203ff08..4a130692f9 100644 --- a/src/lib/dhcpsrv/network_state.h +++ b/src/lib/dhcpsrv/network_state.h @@ -100,11 +100,11 @@ public: /// /// Specify HA service-specific origins by adding a unique remote service /// identifier to this constant. - static const unsigned int HA_REMOTE_COMMAND = 1100; + static const unsigned int HA_REMOTE_COMMAND = 2000; /// @brief The network state is being altered by the DB connection /// recovery mechanics. - static const unsigned int DB_CONNECTION = 2000; + static const unsigned int DB_CONNECTION = 3000; /// @brief Type of the container holding collection of subnet identifiers. typedef std::set Subnets;