diff options
Diffstat (limited to 'src/lib/dhcpsrv/subnet.h')
-rw-r--r-- | src/lib/dhcpsrv/subnet.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/dhcpsrv/subnet.h b/src/lib/dhcpsrv/subnet.h index 0521a5fbee..3e0291a4d5 100644 --- a/src/lib/dhcpsrv/subnet.h +++ b/src/lib/dhcpsrv/subnet.h @@ -422,6 +422,12 @@ protected: /// @return A pointer to unparsed subnet configuration. virtual data::ElementPtr toElement() const; + virtual std::string getLabel() const { + std::stringstream ss; + ss << "subnet-id " << id_; + return (ss.str()); + } + /// @brief Converts subnet prefix to a pair of prefix/length pair. /// /// IPv4 and IPv6 specific conversion functions should apply extra checks |