shwstppr commented on issue #9763:
URL: https://github.com/apache/cloudstack/issues/9763#issuecomment-2607105387

   @rajujith I tested this with a 4.19 env and I can see network rate is taken 
from the network offering. I used offering with network rate as 350
   
   ```
   (localcloud) 🐱 > list networkofferings 
id=b41609ee-3531-445a-b017-3e6ce975d4e0 filter=id,name,networkrate
   {
     "count": 1,
     "networkoffering": [
       {
         "id": "b41609ee-3531-445a-b017-3e6ce975d4e0",
         "name": "350vpctier",
         "networkrate": 350
       }
     ]
   }
   (localcloud) 🐱 > list networks id=e4603017-5e49-49aa-9e5f-1036d2fef59f 
filter=id,networkofferingid,networkofferingname,broadcasturi,
   {
     "count": 1,
     "network": [
       {
         "broadcasturi": "vlan://1122",
         "id": "e4603017-5e49-49aa-9e5f-1036d2fef59f",
         "networkofferingid": "b41609ee-3531-445a-b017-3e6ce975d4e0",
         "networkofferingname": "350vpctier"
       }
     ]
   }
   (localcloud) 🐱 > list routers networkid=e4603017-5e49-49aa-9e5f-1036d2fef59f
   {
     "count": 1,
     "router": [
       {
         "account": "admin",
         "created": "2025-01-22T11:27:26+0000",
         "dns1": "8.8.8.8",
         "domain": "ROOT",
         "domainid": "1be25da3-d6f0-11ef-9850-525400f6925d",
         "gateway": "172.120.0.1",
         "guestipaddress": "10.1.1.1",
         "guestmacaddress": "02:01:00:cf:00:02",
         "guestnetmask": "255.255.255.0",
         "guestnetworkid": "e4603017-5e49-49aa-9e5f-1036d2fef59f",
         "guestnetworkname": "tier1",
         "hasannotations": false,
         "healthchecksfailed": false,
         "hostcontrolstate": "Enabled",
         "hostid": "2b8189b2-f5f6-44f3-96f3-a01afb545c37",
         "hostname": "qa1-cs419-k-7772c1e9-kvm-host1",
         "hypervisor": "KVM",
         "id": "99d00d9f-5764-4d72-932d-e69a88fd9990",
         "isredundantrouter": false,
         "linklocalip": "169.254.242.142",
         "linklocalmacaddress": "0e:00:a9:fe:f2:8e",
         "linklocalnetmask": "255.255.0.0",
         "linklocalnetworkid": "5e76d9dd-29fb-48b4-a724-f498a99370ff",
         "name": "r-11-VM",
         "networkdomain": "cs2test.domain",
         "nic": [
           {
             "gateway": "169.254.0.1",
             "id": "1291fb89-2de6-4986-a475-8a8304d2c247",
             "ipaddress": "169.254.242.142",
             "isdefault": false,
             "macaddress": "0e:00:a9:fe:f2:8e",
             "netmask": "255.255.0.0",
             "networkid": "5e76d9dd-29fb-48b4-a724-f498a99370ff",
             "traffictype": "Control"
           },
           {
             "broadcasturi": "vlan://untagged",
             "gateway": "172.120.0.1",
             "id": "c20626b9-c1c5-44fc-8f41-37c5b0327edb",
             "ipaddress": "172.120.1.3",
             "isdefault": true,
             "isolationuri": "vlan://untagged",
             "macaddress": "1e:00:9a:00:00:80",
             "mtu": 1500,
             "netmask": "255.255.0.0",
             "networkid": "8c077ab0-077a-4de1-82b5-8a45709f8f29",
             "traffictype": "Public"
           },
           {
             "broadcasturi": "vlan://1122",
             "gateway": "10.1.1.1",
             "id": "f21655ce-d21f-486c-9c28-4f6349a2eb8c",
             "ipaddress": "10.1.1.1",
             "isdefault": false,
             "isolationuri": "vlan://1122",
             "macaddress": "02:01:00:cf:00:02",
             "mtu": 1500,
             "netmask": "255.255.255.0",
             "networkid": "e4603017-5e49-49aa-9e5f-1036d2fef59f",
             "networkname": "tier1",
             "traffictype": "Guest",
             "type": "Isolated"
           }
         ],
         "podid": "c2e28003-3a21-4d4d-8718-fda5422fffd9",
         "podname": "Pod",
         "publicip": "172.120.1.3",
         "publicmacaddress": "1e:00:9a:00:00:80",
         "publicnetmask": "255.255.0.0",
         "publicnetworkid": "8c077ab0-077a-4de1-82b5-8a45709f8f29",
         "redundantstate": "UNKNOWN",
         "requiresupgrade": false,
         "role": "VIRTUAL_ROUTER",
         "scriptsversion": "806566f9bd39aab1932d4c8f9ea98b6e\n",
         "serviceofferingid": "6d2c4dab-0eca-467a-9b99-7985b7ccae07",
         "serviceofferingname": "System Offering For Software Router",
         "softwareversion": "4.19.0.0",
         "state": "Running",
         "templateid": "1be78aa3-d6f0-11ef-9850-525400f6925d",
         "templatename": "SystemVM Template (KVM)",
         "version": "4.19.0",
         "vpcid": "b43b7a80-10c8-4d8f-8ccf-c933bd760b6d",
         "vpcname": "testvpc",
         "zoneid": "41ea0c91-725f-419e-9f8d-abcea1ae3bbd",
         "zonename": "DC"
       }
     ]
   }
   ```
   
   On the VR VM definition and tc output,
   
   ```
   [root@qa1-cs419-k-7772c1e9-kvm-host1 ~]# tc -p class show dev vnet4
   class htb 1:1 root leaf 2: prio 0 rate 358400Kbit ceil 358400Kbit burst 
1523b cburst 1523b 
   [root@qa1-cs419-k-7772c1e9-kvm-host1 ~]# virsh dumpxml r-11-VM | xmllint 
--xpath "//interface" -
   <interface type="bridge">
         <mac address="0e:00:a9:fe:f2:8e"/>
         <source bridge="cloud0"/>
         <target dev="vnet3"/>
         <model type="virtio"/>
         <link state="up"/>
         <alias name="net0"/>
         <rom bar="off" file=""/>
         <address type="pci" domain="0x0000" bus="0x00" slot="0x03" 
function="0x0"/>
       </interface><interface type="bridge">
         <mac address="1e:00:9a:00:00:80"/>
         <source bridge="cloudbr0"/>
         <bandwidth>
           <inbound average="44800" peak="44800"/>
           <outbound average="44800" peak="44800"/>
         </bandwidth>
         <target dev="vnet4"/>
         <model type="virtio"/>
         <link state="up"/>
         <alias name="net1"/>
         <rom bar="off" file=""/>
         <address type="pci" domain="0x0000" bus="0x00" slot="0x08" 
function="0x0"/>
       </interface><interface type="bridge">
         <mac address="02:01:00:cf:00:02"/>
         <source bridge="breth0-1122"/>
         <bandwidth>
           <inbound average="44800" peak="44800"/>
           <outbound average="44800" peak="44800"/>
         </bandwidth>
         <target dev="vnet5"/>
         <model type="virtio"/>
         <link state="up"/>
         <alias name="net2"/>
         <rom bar="off" file=""/>
         <address type="pci" domain="0x0000" bus="0x00" slot="0x09" 
function="0x0"/>
      </interface>
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to