-
Notifications
You must be signed in to change notification settings - Fork 190
extract ipaddresses from multiple subnet participation #767
base: master
Are you sure you want to change the base?
extract ipaddresses from multiple subnet participation #767
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @thuvh)
pyvcloud/vcd/gateway.py, line 204 at r1 (raw file):
if inf.InterfaceType.text == 'uplink': ips = out.setdefault(inf.Name.text, []) for subnet_participation in inf.SubnetParticipation:
If this is not a stretched network, then this for loop will throw an exception, right?
The existing code doesn't indicate that the element inf.SubnetParticipation is an array.
Can you please test the code for the case where there is only one inf.SubnetParticipation element?
okie let me check |
I think if we use For loop can work well with a response look like the below
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @rocknes)
pyvcloud/vcd/gateway.py, line 204 at r1 (raw file):
Previously, rocknes wrote…
If this is not a stretched network, then this for loop will throw an exception, right?
The existing code doesn't indicate that the element inf.SubnetParticipation is an array.Can you please test the code for the case where there is only one inf.SubnetParticipation element?
I tested with only one inf.SubnetParticipation element and comment in github
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @rocknes)
pyvcloud/vcd/gateway.py, line 204 at r1 (raw file):
Previously, thuvh (Hoai-Thu Vuong) wrote…
I tested with only one inf.SubnetParticipation element and comment in github
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @rocknes)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @rocknes)
To help us process your pull request efficiently, please include:
(Required) Short description of changes in the PR topic line
(Required) Detailed description of changes include tests and
documentation. If the pull request contains multiple commits with
detailed messages, refer to those instead
(Optional) Names of reviewers using @ sign + name
This change is