Skip to content

add_keys() modification request #2

@bourinat0r

Description

@bourinat0r

Hello,

I had a case where I needed to fetch all the ports status. Using the function, _call_getdeviceswitchportsstatuses, there's no way to identify from which switch we get the ports.

I did a small modification in add_keys() by adding "serial" in relevent_keys.

def add_keys(input_json, output_json):
    input_keys = set(input_json.keys())
    output_keys = set(output_json.keys())
    relevent_keys = {'organizationName', 'organizationId', 'networkName', 'networkId', 'serial' }

Do you think it's good enough to add it to your code?

Good day

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions