]> git.puffer.fish Git - mirror/frr.git/commit
lib, tools: fix reloading of key sub-context in key chains 6976/head
authorAlexander Chernavin <achernavin@netgate.com>
Mon, 24 Aug 2020 13:28:28 +0000 (09:28 -0400)
committerAlexander Chernavin <achernavin@netgate.com>
Mon, 24 Aug 2020 13:54:55 +0000 (09:54 -0400)
commitdeb95b373ffbbadc11e02d23b718093592d8ac68
tree4c8e5f7cdeb2f61d0de7fa9fd97bfe2f0e22dfa6
parent310451ba9712f2d4483bd976a968cd4b6d19477f
lib, tools: fix reloading of key sub-context in key chains

When you add a key chain in the RIP configuration file and reload the
configurations via the frr-reload.py script, the script will fail and
the key chain will not appear in the running configuration. The reason
is that frr-reload.py doesn't recognize key as a sub-context.

Before this change, keys were generated this way:

    key chain test
     key 2
      key-string 123
     key 3
      key-string 456

With this change, keys will be generated this way:

    key chain test
     key 2
      key-string 123
     exit
     key 3
      key-string 456
     exit

This will allow frr-reload.py to see the key sub-context and correctly
reload them.

Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
lib/keychain.c
tools/frr-reload.py