Comments (5)
@cprabha, what do you mean by RouteAnyPrefix(0).Prefix()
? The Route list has three keys: path-id, endpoint, and color. Is the 0 meant to be a path-id and you want to a wildcard for the endpoint and color? If so, that would be available as AdjRibInPre().RouteAny().WithPathId(0).Prefix()
Also, you won't see AsPath()
because it is an enclosing container for the as-segment
list, and ygnmi always elides enclosing container for lists. If you want all the segments of the as-path use AttrSetAny().AsSegmentAny()
from ondatra.
Thanks Greg,
It worked fine with AdjRibInPre().RouteAny().WithPathId(0).Prefix() and AttrSetAny().AsSegmentAny().
from ondatra.
@greg-dennis ,
asPath := gnmi.GetAll(t, ate, rib.AttrSetAny().AsSegmentAny().State()) ==> this is returning pointer instead of value .
Can you please check ?
Output
asPath
[]github.com/openconfig/ondatra/gnmi/oc.NetworkInstance_Protocol_Bgp_Rib_AttrSet_AsSegment len: 200, cap: 200, [{Index: 0, Member: []uint32 len: 5, cap: 8, [64500,64500,64500,64500,64502], Type: RibBgp_AsPathSegmentType_AS_SEQ (1)},{Index: *0, Member: ...
[0..99]:
[0]: *github.com/openconfig/ondatra/gnmi/oc.NetworkInstance_Protocol_Bgp_Rib_AttrSet_AsSegment {Index: *0, Member: []uint32 len: 5, cap: 8, [64500,64500,64500,64500,64502], Type: RibBgp_AsPathSegmentType_AS_SEQ (1)}
[1]: *github.com/openconfig/ondatra/gnmi/oc.NetworkInstance_Protocol_Bgp_Rib_AttrSet_AsSegment {Index: *0, Member: []uint32 len: 5, cap: 8, [64500,64500,64500,64500,64502], Type: RibBgp_AsPathSegmentType_AS_SEQ (1)}
Thanks,
Prabha
from ondatra.
@cprabha, GetAll is returning a list of all the segments, which should be expected. Does that make sense?
from ondatra.
got it, Thanks Greg.
from ondatra.
Related Issues (20)
- Data type mismatch error while running scripts : "invalid type ptr in leaflist" HOT 4
- LookupConfig fails test when path does not exist HOT 6
- gnmi.GetAll does not return containers with path complaince issue HOT 3
- gnmi.GetConfig: unmarshalling error because of unexpected leaf HOT 5
- delay issue when validating data with gnmi.GetAll/CollectAll HOT 4
- Misleading grpc logs HOT 2
- No option available to set media type in ATE HOT 3
- issue seen while configuring Level 1 and 2 together in ATE HOT 1
- RT-2.7_ancx: Ixia is not sending isis packets with authentication except for hello HOT 3
- crafting VLAN tagged frames HOT 8
- Request to include openconfig-platform-psu.yang in gnmi HOT 2
- feat: UseGetForConfig for Nokia HOT 2
- bootz oc model HOT 1
- OTG does not support NewConfig API HOT 1
- Ondatra does not support capture HOT 2
- Errors while building and execute Ondatra's unit tests - ondatra 1.19 and 1.21 dependencies (FAIL github.com/openconfig/ondatra [build failed]) HOT 2
- Errors after go generate ./... HOT 2
- go generate ./... and go build ./... errors HOT 2
- Request to add support for attestz HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ondatra.