Commit d3da4f1f authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[trac875] Comments & descriptions

parent f6e9a118
......@@ -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:
......
{
"module_spec": {
"module_name": "tsig_keys",
"module_description": "The TSIG keyring is stored here",
"config_data": [
{
"item_name": "keys",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment