<div dir="ltr"><div>I believe the confusion here is regarding hidden commands.</div><div><br></div><div>Some options are hidden in the CLI, will not show up in tab complete, and will not show up in ?-complete. But you can still enter them and they'll be accepted. We generally do this when 1) something is planned for deprecation, or 2) when there is a different version of the command that it is better practice to use.</div><div><br></div><div>In the neighbor weight example, weight is a valid option in the top level BGP node after a neighbor statement, but it's hidden there. It isn't hidden in the address family block though, which is where it should go - this sets it on a per-family basis. This is true for the other commands you mentioned.</div><div><br></div><div>Not exactly the best UX, but there it is. Hope this helps!</div><div><br></div><div>Quentin<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 14, 2020 at 6:15 PM Donald Sharp <<a href="mailto:sharpd@cumulusnetworks.com">sharpd@cumulusnetworks.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">they should be can you show me a specific example?<br>
<br>
donald<br>
<br>
On Tue, Jan 14, 2020 at 6:09 PM Simon Attwell <<a href="mailto:sattwell@rgs.qld.edu.au" target="_blank">sattwell@rgs.qld.edu.au</a>> wrote:<br>
><br>
> Donald,<br>
><br>
> Thanks much, that's very helpful!<br>
> I was expecting to see the options with a '?' on the end of the CLI and apparently they are not all documented yet.<br>
><br>
> - Simon<br>
><br>
> -----Original Message-----<br>
> From: Donald Sharp <<a href="mailto:sharpd@cumulusnetworks.com" target="_blank">sharpd@cumulusnetworks.com</a>><br>
> Sent: Wednesday, 15 January 2020 9:00 AM<br>
> To: Simon Attwell <<a href="mailto:sattwell@rgs.qld.edu.au" target="_blank">sattwell@rgs.qld.edu.au</a>><br>
> Cc: <a href="mailto:frog@lists.frrouting.org" target="_blank">frog@lists.frrouting.org</a><br>
> Subject: Re: [FROG] VTYSH and BGP options<br>
><br>
> Simon -<br>
><br>
> Use the `find XXX` command it helps tremendously.<br>
><br>
> eva# find as-path<br>
> (view) show bgp as-path-access-list WORD<br>
> (view) show bgp as-path-access-list<br>
> (view) show ip as-path-access-list WORD<br>
> (view) show ip as-path-access-list<br>
> (enable) show bgp as-path-access-list WORD<br>
> (enable) show bgp as-path-access-list<br>
> (enable) show ip as-path-access-list WORD<br>
> (enable) show ip as-path-access-list<br>
> (config) bgp as-path access-list WORD <deny|permit> LINE...<br>
> (config) no bgp as-path access-list WORD <deny|permit> LINE...<br>
> (config) no bgp as-path access-list WORD<br>
> (config) no ip as-path access-list WORD<br>
> (bgp) bgp bestpath as-path confed<br>
> (bgp) bgp bestpath as-path ignore<br>
> (bgp) bgp bestpath as-path multipath-relax [<as-set|no-as-set>]<br>
> (bgp) neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [{as-path|next-hop|med}]<br>
> (bgp) neighbor <A.B.C.D|X:X::X:X|WORD>$neighbor sender-as-path-loop-detection<br>
> (bgp) no bgp bestpath as-path confed<br>
> (bgp) no bgp bestpath as-path ignore<br>
> (bgp) no bgp bestpath as-path multipath-relax [<as-set|no-as-set>]<br>
> (bgp) no neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [{as-path|next-hop|med}]<br>
> (bgp) no neighbor <A.B.C.D|X:X::X:X|WORD>$neighbor sender-as-path-loop-detection<br>
> (bgp vpnv4) neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [{as-path|next-hop|med}]<br>
> (bgp vpnv4) no neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [{as-path|next-hop|med}]<br>
> (bgp vpnv6) neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [{as-path|next-hop|med}]<br>
> (bgp vpnv6) no neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [{as-path|next-hop|med}]<br>
> (bgp ipv4 unicast) neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [{as-path|next-hop|med}]<br>
> (bgp ipv4 unicast) no neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [{as-path|next-hop|med}]<br>
> (bgp ipv4 multicast) neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [{as-path|next-hop|med}]<br>
> (bgp ipv4 multicast) no neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [{as-path|next-hop|med}]<br>
> (bgp ipv4 labeled unicast) neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [{as-path|next-hop|med}]<br>
> (bgp ipv4 labeled unicast) no neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [{as-path|next-hop|med}]<br>
> (bgp ipv6) neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [{as-path|next-hop|med}]<br>
> (bgp ipv6) no neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [{as-path|next-hop|med}]<br>
> (bgp ipv6 multicast) neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [{as-path|next-hop|med}]<br>
> (bgp ipv6 multicast) no neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [{as-path|next-hop|med}]<br>
> (bgp ipv6 labeled unicast) neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [{as-path|next-hop|med}]<br>
> (bgp ipv6 labeled unicast) no neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [{as-path|next-hop|med}]<br>
> (bgp evpn) neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [{as-path|next-hop|med}]<br>
> (bgp evpn) no neighbor <A.B.C.D|X:X::X:X|WORD> attribute-unchanged [{as-path|next-hop|med}]<br>
> (routemap) match as-path WORD<br>
> (routemap) no match as-path [WORD]<br>
> (routemap) no set as-path exclude (1-4294967295)...<br>
> (routemap) no set as-path exclude<br>
> (routemap) no set as-path prepend [(1-4294967295)]<br>
> (routemap) no set as-path prepend last-as [(1-10)]<br>
> (routemap) set as-path exclude (1-4294967295)...<br>
> (routemap) set as-path prepend (1-4294967295)...<br>
> (routemap) set as-path prepend last-as (1-10)<br>
><br>
> eva# find weight<br>
> (nexthop-group) [no] nexthop < <A.B.C.D|X:X::X:X>$addr<br>
> [INTERFACE$intf] |INTERFACE$intf > [{ nexthop-vrf NAME$vrf_name<br>
> |label WORD |weight (1-255) }]<br>
> (eigrp) metric weights (0-255)$k1 (0-255)$k2 (0-255)$k3 (0-255)$k4<br>
> (0-255)$k5 [(0-255)$k6]<br>
> (eigrp) no metric weights [(0-255) (0-255) (0-255) (0-255) (0-255) (0-255)]<br>
> (bgp) neighbor <A.B.C.D|X:X::X:X|WORD> weight (0-65535)<br>
> (bgp) no neighbor <A.B.C.D|X:X::X:X|WORD> weight [(0-65535)]<br>
> (bgp vpnv4) neighbor <A.B.C.D|X:X::X:X|WORD> weight (0-65535)<br>
> (bgp vpnv4) no neighbor <A.B.C.D|X:X::X:X|WORD> weight [(0-65535)]<br>
> (bgp vpnv6) neighbor <A.B.C.D|X:X::X:X|WORD> weight (0-65535)<br>
> (bgp vpnv6) no neighbor <A.B.C.D|X:X::X:X|WORD> weight [(0-65535)]<br>
> (bgp ipv4 unicast) neighbor <A.B.C.D|X:X::X:X|WORD> weight (0-65535)<br>
> (bgp ipv4 unicast) no neighbor <A.B.C.D|X:X::X:X|WORD> weight [(0-65535)]<br>
> (bgp ipv4 multicast) neighbor <A.B.C.D|X:X::X:X|WORD> weight (0-65535)<br>
> (bgp ipv4 multicast) no neighbor <A.B.C.D|X:X::X:X|WORD> weight [(0-65535)]<br>
> (bgp ipv4 labeled unicast) neighbor <A.B.C.D|X:X::X:X|WORD> weight (0-65535)<br>
> (bgp ipv4 labeled unicast) no neighbor <A.B.C.D|X:X::X:X|WORD> weight [(0-65535)]<br>
> (bgp ipv6) neighbor <A.B.C.D|X:X::X:X|WORD> weight (0-65535)<br>
> (bgp ipv6) no neighbor <A.B.C.D|X:X::X:X|WORD> weight [(0-65535)]<br>
> (bgp ipv6 multicast) neighbor <A.B.C.D|X:X::X:X|WORD> weight (0-65535)<br>
> (bgp ipv6 multicast) no neighbor <A.B.C.D|X:X::X:X|WORD> weight [(0-65535)]<br>
> (bgp ipv6 labeled unicast) neighbor <A.B.C.D|X:X::X:X|WORD> weight (0-65535)<br>
> (bgp ipv6 labeled unicast) no neighbor <A.B.C.D|X:X::X:X|WORD> weight [(0-65535)]<br>
> (routemap) no set weight [(0-4294967295)]<br>
> (routemap) set weight (0-4294967295)<br>
><br>
> donald<br>
><br>
> On Tue, Jan 14, 2020 at 5:55 PM Simon Attwell <<a href="mailto:sattwell@rgs.qld.edu.au" target="_blank">sattwell@rgs.qld.edu.au</a>> wrote:<br>
> ><br>
> > Hi All,<br>
> ><br>
> ><br>
> ><br>
> > New install of FRR on a Debian box, doing BGP on a couple of interfaces in a VRF (netns based).<br>
> ><br>
> > All is good except most of the bgp neighbour options are missing in VTYSH (neighbor <peer> <option>).<br>
> ><br>
> > In particular the options for weight or as-prepent or as-path filtering are missing.<br>
> ><br>
> > Is there something obvious I’m missing?<br>
> ><br>
> ><br>
> ><br>
> > Simon<br>
> ><br>
> > _______________________________________________<br>
> > frog mailing list<br>
> > <a href="mailto:frog@lists.frrouting.org" target="_blank">frog@lists.frrouting.org</a><br>
> > <a href="https://lists.frrouting.org/listinfo/frog" rel="noreferrer" target="_blank">https://lists.frrouting.org/listinfo/frog</a><br>
<br>
_______________________________________________<br>
frog mailing list<br>
<a href="mailto:frog@lists.frrouting.org" target="_blank">frog@lists.frrouting.org</a><br>
<a href="https://lists.frrouting.org/listinfo/frog" rel="noreferrer" target="_blank">https://lists.frrouting.org/listinfo/frog</a><br>
</blockquote></div>