Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Adam Osuchowski
Kea
Commits
3c6c6734
Commit
3c6c6734
authored
Apr 05, 2016
by
Marcin Siodelski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[4301] HostReservationParser::isIdentifierParameter belongs to parent class.
parent
fb4c4a30
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
27 deletions
+6
-27
src/lib/dhcpsrv/parsers/host_reservation_parser.cc
src/lib/dhcpsrv/parsers/host_reservation_parser.cc
+5
-10
src/lib/dhcpsrv/parsers/host_reservation_parser.h
src/lib/dhcpsrv/parsers/host_reservation_parser.h
+1
-17
No files found.
src/lib/dhcpsrv/parsers/host_reservation_parser.cc
View file @
3c6c6734
...
...
@@ -169,6 +169,11 @@ HostReservationParser::addHost(isc::data::ConstElementPtr reservation_data) {
}
}
bool
HostReservationParser
::
isIdentifierParameter
(
const
std
::
string
&
param_name
)
const
{
return
(
getSupportedParameters
(
true
).
count
(
param_name
)
>
0
);
}
bool
HostReservationParser
::
isSupportedParameter
(
const
std
::
string
&
param_name
)
const
{
return
(
getSupportedParameters
(
false
).
count
(
param_name
)
>
0
);
...
...
@@ -212,11 +217,6 @@ HostReservationParser4::build(isc::data::ConstElementPtr reservation_data) {
addHost
(
reservation_data
);
}
bool
HostReservationParser4
::
isIdentifierParameter
(
const
std
::
string
&
param_name
)
const
{
return
(
getSupportedParams4
(
true
).
count
(
param_name
)
>
0
);
}
const
std
::
set
<
std
::
string
>&
HostReservationParser4
::
getSupportedParameters
(
const
bool
identifiers_only
)
const
{
return
(
getSupportedParams4
(
identifiers_only
));
...
...
@@ -312,11 +312,6 @@ HostReservationParser6::build(isc::data::ConstElementPtr reservation_data) {
addHost
(
reservation_data
);
}
bool
HostReservationParser6
::
isIdentifierParameter
(
const
std
::
string
&
param_name
)
const
{
return
(
getSupportedParams6
(
true
).
count
(
param_name
)
>
0
);
}
const
std
::
set
<
std
::
string
>&
HostReservationParser6
::
getSupportedParameters
(
const
bool
identifiers_only
)
const
{
return
(
getSupportedParams6
(
identifiers_only
));
...
...
src/lib/dhcpsrv/parsers/host_reservation_parser.h
View file @
3c6c6734
...
...
@@ -54,7 +54,7 @@ protected:
///
/// @return true if the parameter specifies host identifier, false
/// otherwise.
virtual
bool
isIdentifierParameter
(
const
std
::
string
&
param_name
)
const
=
0
;
virtual
bool
isIdentifierParameter
(
const
std
::
string
&
param_name
)
const
;
/// @brief Checks if the specified parameter is supported by the parser.
///
...
...
@@ -102,14 +102,6 @@ public:
protected:
/// @brief Checks if the specified parameter is a host identifier.
///
/// @param param_name Parameter name.
///
/// @return true if the parameter specifies host identifier, false
/// otherwise.
virtual
bool
isIdentifierParameter
(
const
std
::
string
&
param_name
)
const
;
/// @brief Returns set of the supported parameters for DHCPv4.
///
/// @param identifiers_only Indicates if the function should only
...
...
@@ -142,14 +134,6 @@ public:
protected:
/// @brief Checks if the specified parameter is a host identifier.
///
/// @param param_name Parameter name.
///
/// @return true if the parameter specifies host identifier, false
/// otherwise.
virtual
bool
isIdentifierParameter
(
const
std
::
string
&
param_name
)
const
;
/// @brief Returns set of the supported parameters for DHCPv6.
///
/// @param identifiers_only Indicates if the function should only
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment