Skip to content
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

Applying empty config does not clear the chassis/location object anymore #506

Open
Rangababu-R opened this issue Mar 22, 2022 · 3 comments
Assignees

Comments

@Rangababu-R
Copy link
Contributor

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

Originally posted by @dgalan-xxia in #496 (comment)

@Rangababu-R
Copy link
Contributor Author

@dgalan-xxia Could you provide the UHD version of this issue seen.

@dgalan-xxia
Copy link

0.5.19

@Rangababu-R
Copy link
Contributor Author

@dgalan-xxia not the snappi version UHD version is it 9.10 or 9.20?

@ashutshkumr ashutshkumr moved this from In Progress to Not Started in Open Traffic Generator Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Not Started
Development

No branches or pull requests

2 participants