You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.1 KiB

  1. From 692ce87393de9497a7821e9e0856ff70a7973ff6 Mon Sep 17 00:00:00 2001
  2. From: Paul Manley <paul.manley@wholefoods.com>
  3. Date: Thu, 9 Jul 2020 11:21:16 -0500
  4. Subject: [PATCH 1/2] tools: create sub-context for bfd peers
  5. add lines starting with 'peer' to the list of sub-contexts that are handled by frr-reload.py.
  6. https://github.com/FRRouting/frr/issues/6511#issuecomment-655163833
  7. Signed-off-by: Paul Manley <paul.manley@wholefoods.com>
  8. (cherry picked from commit 1c23a0aaa1c5d20af50af75b070e93e1eff21222)
  9. ---
  10. tools/frr-reload.py | 1 +
  11. 1 file changed, 1 insertion(+)
  12. diff --git a/tools/frr-reload.py b/tools/frr-reload.py
  13. index d4020cdfc9..e9641b2b13 100755
  14. --- a/tools/frr-reload.py
  15. +++ b/tools/frr-reload.py
  16. @@ -496,6 +496,7 @@ def load_contexts(self):
  17. line.startswith("vnc defaults") or
  18. line.startswith("vnc l2-group") or
  19. line.startswith("vnc nve-group") or
  20. + line.startswith("peer") or
  21. line.startswith("member pseudowire")):
  22. main_ctx_key = []
  23. From 2604086c3d9face0aca2497a982782c865bb2b59 Mon Sep 17 00:00:00 2001
  24. From: Paul Manley <paul.manley@wholefoods.com>
  25. Date: Thu, 9 Jul 2020 11:25:34 -0500
  26. Subject: [PATCH 2/2] vtysh: properly exit BFD_PEER_NODE when marking file
  27. vtysh needs to be aware of how to properly exit a bfd peer when subsequent commands only succeed in a higher context.
  28. https://github.com/FRRouting/frr/issues/6511#issuecomment-656166206
  29. Signed-off-by: Paul Manley <paul.manley@wholefoods.com>
  30. (cherry picked from commit b727c12aabf1afc2b6e33f8590c9786e349e4fcb)
  31. ---
  32. vtysh/vtysh.c | 3 +++
  33. 1 file changed, 3 insertions(+)
  34. diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
  35. index 15ec866fc9..4fdf68c0e6 100644
  36. --- a/vtysh/vtysh.c
  37. +++ b/vtysh/vtysh.c
  38. @@ -809,6 +809,9 @@ int vtysh_mark_file(const char *filename)
  39. } else if ((prev_node == KEYCHAIN_KEY_NODE)
  40. && (tried == 1)) {
  41. vty_out(vty, "exit\n");
  42. + } else if ((prev_node == BFD_PEER_NODE)
  43. + && (tried == 1)) {
  44. + vty_out(vty, "exit\n");
  45. } else if (tried) {
  46. vty_out(vty, "end\n");
  47. }