blob: dacaea824aedb4f740e592e936fc89de6d39cd39 [file] [log] [blame]
Murat Parlakisikf95672c2016-12-05 00:53:17 -08001-- binary
206 20 # version, type
300 28 # length
412 34 56 78 # xid
506 1d # version, type (METER_MOD)
600 20 # length
711 11 11 11 # xid
800 00 # command (OFPMC_ADD)
900 01 # flags (OFPMF_KBPS)
1000 00 00 01 # meter_id
1100 01 # bands[0].type (OFPMBT_DROP)
1200 10 # bands[0].length
1300 00 00 01 # bands[0].rate
1400 00 00 02 # bands[0].burst_size
1500 00 00 00 # pad
16-- java
17builder
18 .setXid(0x12345678)
19 .setRequest(factory.buildMeterMod().setXid(0x11111111).setCommand(OFMeterModCommand.ADD)
20 .setFlags(ImmutableSet.<OFMeterFlags>of(OFMeterFlags.KBPS))
21 .setMeterId(1)
22 .setBands(ImmutableList.<OFMeterBand>of(factory.meterBands().buildDrop().setRate(1).setBurstSize(2).build()))
23 .build())
24 .build()