-
Notifications
You must be signed in to change notification settings - Fork 11
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
Can not get latency stats #496
Comments
I am getting this latency when run our internal UT (https://github.com/open-traffic-generator/snappi-ixnetwork/blob/main/tests/metrics/test_latency_metrics.py) with
It looks like this is specific to some HW or test script. Could you please provide entire script and chassis/ card type |
Indeed - our script creates flows and enables latency twice on the same session. |
did some more testing and realized our script was clearing the config (applying an empty config) before checking the chassis properties. so the issue seems to be that clearing the config does not clear the chassis/location object anymore def enable_latency_stats(traffic_api: snappi.Api, config:snappi.snappi.Config):
# if setup is not UHD, enable latency stats
traffic_api.set_config(traffic_api.config())
ixn_session = traffic_api.assistant.Session.Ixnetwork
chassis = ixn_session.AvailableHardware.Chassis.find()
try:
chassis.href #only UHD has an empty session prepopulated with a chassis
except:
print("Enabling latency metrics")
for flow in config.flows:
flow.metrics.latency.enable = True |
Version information
snappi-ixnetwork 0.7.5
Describe the bug
Below snippet seems to have no effect in this version:
Since below returns None
The text was updated successfully, but these errors were encountered: