Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
d3da4f1f
Commit
d3da4f1f
authored
May 12, 2011
by
Michal 'vorner' Vaner
Browse files
[trac875] Comments & descriptions
parent
f6e9a118
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/cfgmgr/plugins/tsig_keys.py
View file @
d3da4f1f
...
...
@@ -13,6 +13,12 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
# This is the plugin for tsig_keys configuration section. The TSIG keyring
# lives there (eg. all the shared secrets, with some exceptions where there
# are some TSIG keys elsewhere, but these should be removed soon). We do
# sanity checking of user configuration here, simply by trying to construct
# all the keys here.
from
isc.config.module_spec
import
module_spec_from_file
from
isc.util.file
import
path_search
from
pydnspp
import
TSIGKey
,
InvalidParameter
...
...
@@ -26,7 +32,8 @@ def check(config):
return
' '
.
join
(
errors
)
# Get the list of keys, if any
keys
=
config
.
get
(
'keys'
,
[])
# Run trough them, check they can be constructed and there are no dupes
# Run through them, check they can be constructed and there are no
# duplicates
keyNames
=
set
()
for
key
in
keys
:
try
:
...
...
src/bin/cfgmgr/plugins/tsig_keys.spec
View file @
d3da4f1f
{
"module_spec": {
"module_name": "tsig_keys",
"module_description": "The TSIG keyring is stored here",
"config_data": [
{
"item_name": "keys",
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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