@Override public ObjectNode encode(OfdpaMatchVlanVid vlanId, CodecContext context) { checkNotNull(vlanId, "Vlan ID cannot be null"); ObjectNode root = context.mapper().createObjectNode() .put(VLAN_ID, vlanId.vlanId().id()); return root; }
@Override public ObjectNode encode(OfdpaSetVlanVid vlanId, CodecContext context) { checkNotNull(vlanId, "Vlan ID cannot be null"); ObjectNode root = context.mapper().createObjectNode() .put(VLAN_ID, vlanId.vlanId().id()); return root; }
.setDestinationMACAddress(destinationMac) .setSourceMACAddress(sourceMac); ethernet.setVlanID(vlan.id());
.setDestinationMACAddress(destinationMac) .setSourceMACAddress(sourceMac); ethernet.setVlanID(vlan.id());