]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Rework bgp 'attribute-unchanged' commands
authorQuentin Young <qlyoung@cumulusnetworks.com>
Sun, 13 Nov 2016 09:37:43 +0000 (09:37 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Sun, 13 Nov 2016 09:37:43 +0000 (09:37 +0000)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
bgpd/bgp_vty.c

index 52b7da1d50b9b455fee1390664eeccac07c7d977..d8ffcc46796a39d623cc1802663e9e41ca605b65 100644 (file)
@@ -3964,7 +3964,12 @@ DEFUN (no_neighbor_nexthop_local_unchanged,
 
 DEFUN (neighbor_attr_unchanged,
        neighbor_attr_unchanged_cmd,
-       "neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [<as-path|next-hop|med> [<as-path|next-hop|med> [<as-path|next-hop|med>]]]",
+       "neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged\
+       [<\
+          as-path [next-hop [med]]|as-path [med [next-hop]]|\
+          next-hop [as-path [med]]|next-hop [med [as-path]]|\
+          med [as-path [nexthop]]|med [next-hop [as-path]]\
+       >]",
        NEIGHBOR_STR
        NEIGHBOR_ADDR_STR2
        "BGP attribute is propagated unchanged to this neighbor\n"
@@ -3972,11 +3977,20 @@ DEFUN (neighbor_attr_unchanged,
        "Nexthop attribute\n"
        "Med attribute\n"
        "As-path attribute\n"
+       "Med attribute\n"
+       "Nexthop attribute\n"
+       "Nexthop attribute\n"
+       "As-path attribute\n"
+       "Med attribute\n"
        "Nexthop attribute\n"
        "Med attribute\n"
        "As-path attribute\n"
+       "Med attribute\n"
+       "As-path attribute\n"
+       "Nexthop attribute\n"
+       "Med attribute\n"
        "Nexthop attribute\n"
-       "Med attribute\n")
+       "As-path attribute\n")
 {
   int idx = 0;
   char *peer = argv[1]->arg;
@@ -4003,7 +4017,12 @@ DEFUN (neighbor_attr_unchanged,
 
 DEFUN (no_neighbor_attr_unchanged,
        no_neighbor_attr_unchanged_cmd,
-       "no neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [<as-path|next-hop|med> [<as-path|next-hop|med> [<as-path|next-hop|med>]]]",
+       "no neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged\
+       [<\
+          as-path [next-hop [med]]|as-path [med [next-hop]]|\
+          next-hop [as-path [med]]|next-hop [med [as-path]]|\
+          med [as-path [nexthop]]|med [next-hop [as-path]]\
+       >]",
        NO_STR
        NEIGHBOR_STR
        NEIGHBOR_ADDR_STR2
@@ -4012,11 +4031,20 @@ DEFUN (no_neighbor_attr_unchanged,
        "Nexthop attribute\n"
        "Med attribute\n"
        "As-path attribute\n"
+       "Med attribute\n"
+       "Nexthop attribute\n"
+       "Nexthop attribute\n"
+       "As-path attribute\n"
+       "Med attribute\n"
        "Nexthop attribute\n"
        "Med attribute\n"
        "As-path attribute\n"
+       "Med attribute\n"
+       "As-path attribute\n"
+       "Nexthop attribute\n"
+       "Med attribute\n"
        "Nexthop attribute\n"
-       "Med attribute\n")
+       "As-path attribute\n")
 {
   int idx = 0;
   char *peer = argv[2]->arg;