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
7b25152b
Commit
7b25152b
authored
May 11, 2011
by
Michal 'vorner' Vaner
Browse files
[trac875] We don't use isc.dns, but pydnspp
parent
76a81d33
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/cfgmgr/plugins/tsig_keys.py
View file @
7b25152b
...
...
@@ -15,8 +15,7 @@
from
isc.config.module_spec
import
module_spec_from_file
from
isc.util.file
import
path_search
from
isc.dns
import
TSIGKey
import
pydnspp
from
pydnspp
import
TSIGKey
,
InvalidParameter
from
bind10_config
import
PLUGIN_PATHS
spec
=
module_spec_from_file
(
path_search
(
'tsig_keys.spec'
,
PLUGIN_PATHS
))
...
...
@@ -32,7 +31,7 @@ def check(config):
for
key
in
keys
:
try
:
name
=
str
(
TSIGKey
(
key
).
get_key_name
())
except
pydnspp
.
InvalidParameter
as
e
:
except
InvalidParameter
as
e
:
return
"TSIG: "
+
str
(
e
)
if
name
in
keyNames
:
return
"Multiple TSIG keys with name '"
+
name
+
"'"
...
...
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