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

hello_snappi.py looks broken #173

Open
mgheorghe opened this issue Dec 6, 2023 · 0 comments
Open

hello_snappi.py looks broken #173

mgheorghe opened this issue Dec 6, 2023 · 0 comments

Comments

@mgheorghe
Copy link

to start with somehow with no parameters provided the controller starts on 8443 instead of 443.

sample assumes 443

once port 8443 is added it connects but fails later, at least the sample should work

/hello_snappy.py
2023-12-06 07:27:12 [snappi.snappi] [WARNING] Certificate verification is disabled
Pushing traffic configuration ...
[WARNING]: Capture is under_review, There may be changes in filter configuration
[WARNING]: rx_name property in schema FlowPort is deprecated, This property is deprecated in favor of property rx_names
[WARNING]: rx_name property in schema FlowPort is deprecated, This property is deprecated in favor of property rx_names
[WARNING]: rx_name property in schema FlowPort is deprecated, This property is deprecated in favor of property rx_names
[WARNING]: rx_name property in schema FlowPort is deprecated, This property is deprecated in favor of property rx_names
Starting packet capture on all configured ports ...
Traceback (most recent call last):
File "/root/./opi-poc/demos/tgen/hello_snappy.py", line 157, in
hello_snappi()
File "/root/./opi-poc/demos/tgen/hello_snappy.py", line 75, in hello_snappi
cs = api.capture_state()
AttributeError: 'HttpApi' object has no attribute 'capture_state'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant