hello_snappi.py looks broken
mgheorghe opened this issue · comments
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'