Boris Stoyanov created CLOUDSTACK-9758: ------------------------------------------
Summary: Gateway is being displayed for all NIC while on the VM is being set only at the default network Key: CLOUDSTACK-9758 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9758 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Components: API Affects Versions: 4.9.1.0 Reporter: Boris Stoyanov Attachments: Attachment 1.png Please observe that the gateway has been set only on the default network but the api returns it's on all. Steps: 1. Create 3 different networks 2. Deploy a VM with the networks and select one of them as default Observe that API is showing wrong info. {code} (local) SBCM5> list virtualmachines count = 1 virtualmachine: id = fe763841-a6d2-4211-8ceb-f46cea2ae362 name = VM-fe763841-a6d2-4211-8ceb-f46cea2ae362 account = admin affinitygroup: cpunumber = 1 cpuspeed = 500 cpuused = 0% created = 2017-01-19T14:11:27+0000 diskioread = 0 diskiowrite = 0 diskkbsread = 0 diskkbswrite = 0 displayname = VM-fe763841-a6d2-4211-8ceb-f46cea2ae362 displayvm = True domain = ROOT domainid = 8064bd76-dc81-11e6-a327-064868010720 guestosid = 8078b754-dc81-11e6-a327-064868010720 haenable = False hostid = 83dccf8c-68fc-49c9-bcd9-f2bad9ec1930 hostname = 10.2.2.44 hypervisor = VMware instancename = i-2-122-VM isdynamicallyscalable = False memory = 512 memoryintfreekbs = 0 memorykbs = 524288 memorytargetkbs = 524288 networkkbsread = 0 networkkbswrite = 0 nic: id = e39f4290-a936-433e-b302-2d9614341f40 broadcasturi = vlan://707 gateway = 10.1.1.1 ipaddress = 10.1.1.183 isdefault = True isolationuri = vlan://707 macaddress = 02:00:67:88:00:03 netmask = 255.255.255.0 networkid = 04d0de85-99be-424f-9fb7-a41f8ca09e9a networkname = def secondaryip: traffictype = Guest type = Isolated ================================================================================ id = c5f9c9db-fe31-4d5d-9019-46e56f4bfb75 broadcasturi = vlan://714 gateway = 10.1.1.1 ipaddress = 10.1.1.177 isdefault = False isolationuri = vlan://714 macaddress = 02:00:67:d6:00:04 netmask = 255.255.255.0 networkid = 1f7b595e-7667-4e8d-8081-b189541a1eeb networkname = net2 secondaryip: traffictype = Guest type = Isolated ================================================================================ id = 16f26ba8-ce8e-44e2-bf73-785eb7012f0f broadcasturi = vlan://710 gateway = 10.1.1.1 ipaddress = 10.1.1.38 isdefault = False isolationuri = vlan://710 macaddress = 02:00:3d:fe:00:03 netmask = 255.255.255.0 networkid = ed138a09-b8df-4304-8f1d-a56792d012b2 networkname = net1 secondaryip: traffictype = Guest type = Isolated ostypeid = 12 passwordenabled = False rootdeviceid = 0 rootdevicetype = ROOT securitygroup: serviceofferingid = 0f7acb1e-21b9-49e6-a678-9f9137caec9c serviceofferingname = Small Instance state = Running tags: templatedisplaytext = CentOS 5.3(64-bit) no GUI (vSphere) templateid = 806a7e6e-dc81-11e6-a327-064868010720 templatename = CentOS 5.3(64-bit) no GUI (vSphere) userid = a693b6aa-dc81-11e6-a327-064868010720 username = admin zoneid = ba5aa0d4-9518-4663-abb5-9f0ac183d577 zonename = trl-KDDI-bstoyanov }{code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)