Skip to content

Conversation

@nitin-maharana
Copy link
Contributor

While calling the listNics API, instead of sending the default nic id as parameter, it should send the network id as a parameter.

So, replaced that nicid parameter as networkid parameter.

@sebgoa
Copy link
Member

sebgoa commented Oct 5, 2015

@nitin-maharana Any automated tests for this ? if not, can you spend the time to write some. thanks

@nitin-maharana
Copy link
Contributor Author

@Runseb I think there is no automated tests for this. I will try to write one. Thanks.

@remibergsma
Copy link
Contributor

@nitin-maharana Any update on this?

@nitin-maharana
Copy link
Contributor Author

@remibergsma I was busy in some other works. Within 3-4 days I will work on this and will give an update. Thank you.

@nitin-maharana
Copy link
Contributor Author

Hi @Runseb @remibergsma I don't understand what to test and how to write a test for this. If you have any idea of how to write one, please help me out. Thanks.

…s displayed rather than the IP corresponding to the NIC where LB is being created

While calling the listNics API, instead of sending the default nic id as parameter, it should send the network id as a parameter.
So, replaced that nicid parameter as networkid parameter.
@karuturi
Copy link
Member

karuturi commented Nov 2, 2015

great find @nitin-maharana
manually tested the fix
In my setup, I had a vm with two nics
isolated1 - 10.1.1.14 - default
isolated 2 - 10.1.1.187 - non default

When I add a LB rule in network isolated2 for the VM, this is API call before the change and it failed.
screen shot 2015-11-02 at 4 38 35 pm

After the fix, it took the right IP and succeeded.
screen shot 2015-11-02 at 4 49 11 pm

👍 LGTM

@remibergsma
Copy link
Contributor

Nice small fix, LGTM.

@asfgit asfgit merged commit 834ab53 into apache:master Nov 2, 2015
asfgit pushed a commit that referenced this pull request Nov 2, 2015
CLOUDSTACK-8928: While adding VMs to LB rule, default NIC IP is always displayed rather than the IP corresponding to the NIC where LB is being createdWhile calling the listNics API, instead of sending the default nic id as parameter, it should send the network id as a parameter.

So, replaced that nicid parameter as networkid parameter.

* pr/903:
  CLOUDSTACK-8928: While adding VMs to LB rule, default NIC IP is always displayed rather than the IP corresponding to the NIC where LB is being created

Signed-off-by: Remi Bergsma <[email protected]>
@nitin-maharana
Copy link
Contributor Author

Thanks @karuturi @remibergsma.

@nitin-maharana nitin-maharana deleted the nitin1 branch January 14, 2016 16:48
@nitin-maharana nitin-maharana restored the nitin1 branch January 14, 2016 16:48
rohityadavcloud pushed a commit that referenced this pull request Jan 20, 2021
Allowing user to use local/browser timezone

Signed-off-by: Rohit Yadav <[email protected]>
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

Successfully merging this pull request may close these issues.

5 participants