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

SecureTrack Device Objects ignore the parent_id result of the REST Endpoint #28

Open
grepusername opened this issue Nov 4, 2019 · 0 comments

Comments

@grepusername
Copy link
Contributor

It would be highly useful to have the parent_id available when using the SecureTrackHelper.get_device_by_(name|id|.*) methods.

As it is the REST API returns:

{
    "device": {
        "id": "1111",
        "name": "Name",
        "vendor": "VMware",
        "model": "nsx_fw",
        "domain_id": "11",
        "domain_name": "Domain X",
        "offline": false,
        "topology": true,
        "module_uid": "",
        "ip": "192.168.23.5",
        "latest_revision": "1408",
        "parent_id": 1110,
        "virtual_type": "context"
    }
}

However the Device.from_xml_node and Device.init methods both completely ignore this field, though xml_tags.Elements.PARENT_ID exists. Given the nature of the Device.get_parents_recursive method it appears that the Device._parent attribute is intended to be another rich object rather than the simple id.

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