summaryrefslogtreecommitdiff
path: root/lib/command_graph.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-03-03 23:10:19 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-03-03 23:10:19 +0300
commit632f36100c2d36e17446f384e430e8eecfa03d6e (patch)
treeea204f0c937a58f5fa0c6024bac4a797b9bc17e2 /lib/command_graph.h
parent5e4d0fbc93cac79f1f94c612c64f4ab5949db5da (diff)
bfdd: forbid creation of the same peer with and without interface name
Currently it is possible to configure the same peer with and without interface name: ``` bfd peer 1.1.1.1 ! peer 1.1.1.1 interface enp0s3 ! ``` There are multiple problems with that: 1. Both nodes actually control the same BFD session. So the config is either duplicated or, even worse, different - and there is no way to say which one actually works. 2. When the user deletes both nodes, the session is not actually freed, because its refcount is always greater than 1. Such configuration must be forbidden. User should either have single node with wildcard name or multiple nodes with actual names. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/command_graph.h')
0 files changed, 0 insertions, 0 deletions