QOS bandwidth Limit per subnet

i was testing in my Lab

I have 2 office and have X amount of bandwidth they need to be split in to 30% for second office 70% for First office :

access-list 110 permit ip any 10.10.0.0/24
access-list 120 permit ip any 20.20.0.0/24


class-map office1
match access-group 110

class-map office2
match access-group 120


policy-map groupoffice
class office1
  shape average 3000000 
  bandwidth percent 30
class office2
  bandwidth percent 70
exit

policy-map totalbandwidth
class class-default
  shape average 10000000
  service-policy groupoffice
exit

interface Gig0/0
service-policy output totalbandwidth

There may be some Limitation please refer IOS version reference document.

Happy Labbing !!!!!