-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support needed to get RouteAnyPrefix() leaf and AsPath() leaves for BGP Rib #67
Comments
@cprabha, what do you mean by Also, you won't see |
Thanks Greg, |
@greg-dennis , OutputasPath Thanks, |
@cprabha, GetAll is returning a list of all the segments, which should be expected. Does that make sense? |
got it, Thanks Greg. |
Hi,
I have to get AsPath for all the prefixes in rib . Below is not supported, please could you check,
I have highglighed unsupported leaf in bold.
rib := at.NetworkInstance(ap.Name()).Protocol(oc.PolicyTypes_INSTALL_PROTOCOL_TYPE_BGP, fmt.Sprintf("bgp-%s", ap.Name())).Bgp().Rib()
prefixPath := rib.AfiSafi(oc.BgpTypes_AFI_SAFI_TYPE_IPV4_UNICAST).Ipv4Unicast().
Neighbor(setup.DUTIPList[ap.ID()].String()).AdjRibInPre().RouteAnyPrefix(0).Prefix()
pref := gnmi.Get(t, dut, prefixPath.State())
asPath := gnmi.Get(t, dut, rib.AttrSetAny().AsPath().State())
Thanks,
Prabha
The text was updated successfully, but these errors were encountered: