-
Notifications
You must be signed in to change notification settings - Fork 194
Closed
Description
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
Labels
No labels