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

Adding capture configuration to config results in failure #7

Closed
ashutshkumr opened this issue Jan 14, 2021 · 0 comments
Closed

Adding capture configuration to config results in failure #7

ashutshkumr opened this issue Jan 14, 2021 · 0 comments
Labels
bug Something isn't working
Projects

Comments

@ashutshkumr
Copy link
Contributor

Snippet:

import snappi

api = snappi.api.Api()
config = api.config()
config.captures.capture()
print(config.serialize())

Error:

>       config.captures.capture()

self = <snappi.capturelist.CaptureList object at 0x7fc781faf850>, port_names = None, pcap = None, enable = True, overwrite = False
format = 'pcap', name = None

    def capture(self, port_names=None, pcap=None, enable=True, overwrite=False, format='pcap', name=None):
        # type: () -> Capture
        """Factory method to create an instance of the snappi.capture.Capture class
    
        Container for capture settings.
        """
>       item = Capture(port_names, pcap, enable, overwrite, format, name)
E       TypeError: __init__() takes from 1 to 6 positional arguments but 7 were given

snappi/capturelist.py:16: TypeError
@ashutshkumr ashutshkumr added this to Backlog in Stabilize via automation Jan 14, 2021
@ashutshkumr ashutshkumr added the bug Something isn't working label Jan 14, 2021
Stabilize automation moved this from Backlog to Closed Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

1 participant