Skip to content

Missing "addressSpace" key value for private subnet #876

@manojgudi

Description

@manojgudi

For a virtual machine(box):
way to reproduce this is for a box with 2 IPs (Private + Public)

client  = SoftLayer.create_client_from_env()
vsmgr = SoftLayer.VSManager(client)
instanceDetails = vsmgr.get_instance(INSTANCE_ID)
componentList = instanceDetails.get("networkComponents")
# This should print "PRIVATE" and "PUBLIC" respectively, instead one of the output is None, i.e. private network component dictionary has no key/value "addressSpace"
for i in componentList:
    print( i["primarySubnet"].get("addressSpace") )

Expected Behavior

PRIVATE
PUBLIC

Actual Behavior

None
PUBLIC

Environment Information

Operating System:
Ubuntu
softlayer-python version (slcli --version):
$ slcli --version
slcli (SoftLayer Command-line), version 5.2.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions