diff options
author | Chris Luke <chrisy@flirble.org> | 2016-06-02 11:00:41 -0400 |
---|---|---|
committer | Chris Luke <chrisy@flirble.org> | 2016-06-02 11:28:59 -0400 |
commit | e54436005341800f76a584299ef8bf99e8d66227 (patch) | |
tree | d1e09b9561eb5b2df3c79c7aeea8ab18fb8bac76 /vlib | |
parent | 3419d0b9c1f64c6f477601eeea6b0e5465a89dce (diff) |
VPP-91 fix sr tunnel add_del collision check
The add_del function was not properly checking if a tunnel already
existed; instead it was checking if the given tunnel name existed.
If no tunnel name was given it flat out refused to add a tunnel
even though that is optional.
Cleanup the add/del parameter validation to "do what I expect" it
to do:
When adding a tunnel:
- If a "name" is given, it must not exist.
- The "key" is always checked, and must not exist.
When deleting a tunnel:
- If the "name" is given, and it exists, then use it.
- If the "name" is not given, use the "key".
- If the "name" and the "key" are given, then both must point to the
same thing.
Change-Id: I9b48ae0203f9664cf8af0f7dc49bf480ddec10d5
Signed-off-by: Chris Luke <chrisy@flirble.org>
Diffstat (limited to 'vlib')
0 files changed, 0 insertions, 0 deletions