blob: 3057b66d720260dd71723549aecb93e06b4112ea [file] [log] [blame]
-- binary
00 07 # type
00 20 # length
00 00 00 01 # flags (OFPSTF_PERIODIC)
80 02 00 08 # stats.oxs_list[0].type_len - DURATION
00 00 00 00 00 00 00 04 # stats.oxs_list[0].value
80 02 02 08 # stats.oxs_list[1].type_len - IDLE_TIME (02 -> 0000 0010 -> oxs_field width 7, oxs_reserved width 1)
00 00 00 00 00 00 00 06 # stats.oxs_list[1].value
-- java
builder
.setFlags(ImmutableSet.<OFStatTriggerFlags>of(OFStatTriggerFlags.PERIODIC))
.setThresholds(OFOxsList.of(OFFactories.getFactory(OFVersion.OF_15).oxss().buildDuration().setValue(U64.of(4)).build(),
OFFactories.getFactory(OFVersion.OF_15).oxss().buildIdleTime().setValue(U64.of(6)).build()))