alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 1 | package org.onlab.onos.provider.of.flow.impl; |
| 2 | |
| 3 | import static org.slf4j.LoggerFactory.getLogger; |
| 4 | |
| 5 | import java.util.List; |
| 6 | |
| 7 | import org.onlab.onos.net.DeviceId; |
| 8 | import org.onlab.onos.net.PortNumber; |
alshabib | 1c319ff | 2014-10-04 20:29:09 -0700 | [diff] [blame] | 9 | import org.onlab.onos.net.flow.DefaultFlowEntry; |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 10 | import org.onlab.onos.net.flow.DefaultFlowRule; |
| 11 | import org.onlab.onos.net.flow.DefaultTrafficSelector; |
| 12 | import org.onlab.onos.net.flow.DefaultTrafficTreatment; |
alshabib | 1c319ff | 2014-10-04 20:29:09 -0700 | [diff] [blame] | 13 | import org.onlab.onos.net.flow.FlowEntry; |
| 14 | import org.onlab.onos.net.flow.FlowEntry.FlowEntryState; |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 15 | import org.onlab.onos.net.flow.FlowRule; |
| 16 | import org.onlab.onos.net.flow.TrafficSelector; |
| 17 | import org.onlab.onos.net.flow.TrafficTreatment; |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 18 | import org.onlab.onos.openflow.controller.Dpid; |
Ayaka Koshibe | 1d56fe4 | 2014-09-19 16:51:58 -0700 | [diff] [blame] | 19 | import org.onlab.packet.IpPrefix; |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 20 | import org.onlab.packet.MacAddress; |
| 21 | import org.onlab.packet.VlanId; |
| 22 | import org.projectfloodlight.openflow.protocol.OFFlowRemoved; |
| 23 | import org.projectfloodlight.openflow.protocol.OFFlowStatsEntry; |
alshabib | 19fdc12 | 2014-10-03 11:38:19 -0700 | [diff] [blame] | 24 | import org.projectfloodlight.openflow.protocol.OFInstructionType; |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 25 | import org.projectfloodlight.openflow.protocol.action.OFAction; |
| 26 | import org.projectfloodlight.openflow.protocol.action.OFActionOutput; |
| 27 | import org.projectfloodlight.openflow.protocol.action.OFActionSetDlDst; |
| 28 | import org.projectfloodlight.openflow.protocol.action.OFActionSetDlSrc; |
| 29 | import org.projectfloodlight.openflow.protocol.action.OFActionSetNwDst; |
| 30 | import org.projectfloodlight.openflow.protocol.action.OFActionSetNwSrc; |
| 31 | import org.projectfloodlight.openflow.protocol.action.OFActionSetVlanPcp; |
| 32 | import org.projectfloodlight.openflow.protocol.action.OFActionSetVlanVid; |
alshabib | 19fdc12 | 2014-10-03 11:38:19 -0700 | [diff] [blame] | 33 | import org.projectfloodlight.openflow.protocol.instruction.OFInstruction; |
| 34 | import org.projectfloodlight.openflow.protocol.instruction.OFInstructionApplyActions; |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 35 | import org.projectfloodlight.openflow.protocol.match.Match; |
| 36 | import org.projectfloodlight.openflow.protocol.match.MatchField; |
| 37 | import org.projectfloodlight.openflow.types.IPv4Address; |
Jonathan Hart | 0e12fad | 2014-10-17 14:54:58 -0700 | [diff] [blame^] | 38 | import org.projectfloodlight.openflow.types.Masked; |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 39 | import org.slf4j.Logger; |
| 40 | |
alshabib | 19fdc12 | 2014-10-03 11:38:19 -0700 | [diff] [blame] | 41 | import com.google.common.collect.Lists; |
| 42 | |
alshabib | 1c319ff | 2014-10-04 20:29:09 -0700 | [diff] [blame] | 43 | public class FlowEntryBuilder { |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 44 | private final Logger log = getLogger(getClass()); |
| 45 | |
| 46 | private final OFFlowStatsEntry stat; |
| 47 | private final OFFlowRemoved removed; |
| 48 | |
| 49 | private final Match match; |
| 50 | private final List<OFAction> actions; |
| 51 | |
| 52 | private final Dpid dpid; |
| 53 | |
alshabib | 19fdc12 | 2014-10-03 11:38:19 -0700 | [diff] [blame] | 54 | private final boolean addedRule; |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 55 | |
| 56 | |
alshabib | 1c319ff | 2014-10-04 20:29:09 -0700 | [diff] [blame] | 57 | public FlowEntryBuilder(Dpid dpid, OFFlowStatsEntry entry) { |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 58 | this.stat = entry; |
| 59 | this.match = entry.getMatch(); |
alshabib | 19fdc12 | 2014-10-03 11:38:19 -0700 | [diff] [blame] | 60 | this.actions = getActions(entry); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 61 | this.dpid = dpid; |
alshabib | 219ebaa | 2014-09-22 15:41:24 -0700 | [diff] [blame] | 62 | this.removed = null; |
alshabib | 19fdc12 | 2014-10-03 11:38:19 -0700 | [diff] [blame] | 63 | this.addedRule = true; |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 64 | } |
| 65 | |
alshabib | 1c319ff | 2014-10-04 20:29:09 -0700 | [diff] [blame] | 66 | public FlowEntryBuilder(Dpid dpid, OFFlowRemoved removed) { |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 67 | this.match = removed.getMatch(); |
| 68 | this.removed = removed; |
| 69 | |
| 70 | this.dpid = dpid; |
| 71 | this.actions = null; |
| 72 | this.stat = null; |
alshabib | 19fdc12 | 2014-10-03 11:38:19 -0700 | [diff] [blame] | 73 | this.addedRule = false; |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 74 | |
| 75 | } |
| 76 | |
alshabib | 1c319ff | 2014-10-04 20:29:09 -0700 | [diff] [blame] | 77 | public FlowEntry build() { |
alshabib | 19fdc12 | 2014-10-03 11:38:19 -0700 | [diff] [blame] | 78 | if (addedRule) { |
alshabib | 1c319ff | 2014-10-04 20:29:09 -0700 | [diff] [blame] | 79 | FlowRule rule = new DefaultFlowRule(DeviceId.deviceId(Dpid.uri(dpid)), |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 80 | buildSelector(), buildTreatment(), stat.getPriority(), |
alshabib | a0e0498 | 2014-10-03 13:03:19 -0700 | [diff] [blame] | 81 | stat.getCookie().getValue(), stat.getIdleTimeout()); |
alshabib | 1c319ff | 2014-10-04 20:29:09 -0700 | [diff] [blame] | 82 | return new DefaultFlowEntry(rule, FlowEntryState.ADDED, |
| 83 | stat.getDurationSec(), stat.getPacketCount().getValue(), |
| 84 | stat.getByteCount().getValue()); |
| 85 | |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 86 | } else { |
alshabib | 1c319ff | 2014-10-04 20:29:09 -0700 | [diff] [blame] | 87 | FlowRule rule = new DefaultFlowRule(DeviceId.deviceId(Dpid.uri(dpid)), |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 88 | buildSelector(), null, removed.getPriority(), |
alshabib | 1c319ff | 2014-10-04 20:29:09 -0700 | [diff] [blame] | 89 | removed.getCookie().getValue(), removed.getIdleTimeout()); |
| 90 | return new DefaultFlowEntry(rule, FlowEntryState.REMOVED, removed.getDurationSec(), |
| 91 | removed.getPacketCount().getValue(), removed.getByteCount().getValue()); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 92 | } |
| 93 | } |
| 94 | |
alshabib | 19fdc12 | 2014-10-03 11:38:19 -0700 | [diff] [blame] | 95 | private List<OFAction> getActions(OFFlowStatsEntry entry) { |
| 96 | switch (entry.getVersion()) { |
| 97 | case OF_10: |
| 98 | return entry.getActions(); |
| 99 | case OF_11: |
| 100 | case OF_12: |
| 101 | case OF_13: |
| 102 | List<OFInstruction> ins = entry.getInstructions(); |
| 103 | for (OFInstruction in : ins) { |
| 104 | if (in.getType().equals(OFInstructionType.APPLY_ACTIONS)) { |
| 105 | OFInstructionApplyActions apply = (OFInstructionApplyActions) in; |
| 106 | return apply.getActions(); |
| 107 | } |
| 108 | } |
| 109 | return Lists.newLinkedList(); |
| 110 | default: |
| 111 | log.warn("Unknown OF version {}", entry.getVersion()); |
| 112 | } |
| 113 | return Lists.newLinkedList(); |
| 114 | } |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 115 | |
| 116 | private TrafficTreatment buildTreatment() { |
tom | 9a693fd | 2014-10-03 11:32:19 -0700 | [diff] [blame] | 117 | TrafficTreatment.Builder builder = DefaultTrafficTreatment.builder(); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 118 | // If this is a drop rule |
| 119 | if (actions.size() == 0) { |
alshabib | 010c31d | 2014-09-26 10:01:12 -0700 | [diff] [blame] | 120 | builder.drop(); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 121 | return builder.build(); |
| 122 | } |
| 123 | for (OFAction act : actions) { |
| 124 | switch (act.getType()) { |
| 125 | case OUTPUT: |
| 126 | OFActionOutput out = (OFActionOutput) act; |
alshabib | 010c31d | 2014-09-26 10:01:12 -0700 | [diff] [blame] | 127 | builder.setOutput( |
| 128 | PortNumber.portNumber(out.getPort().getPortNumber())); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 129 | break; |
| 130 | case SET_VLAN_VID: |
alshabib | 010c31d | 2014-09-26 10:01:12 -0700 | [diff] [blame] | 131 | OFActionSetVlanVid vlan = (OFActionSetVlanVid) act; |
| 132 | builder.setVlanId(VlanId.vlanId(vlan.getVlanVid().getVlan())); |
| 133 | break; |
| 134 | case SET_VLAN_PCP: |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 135 | OFActionSetVlanPcp pcp = (OFActionSetVlanPcp) act; |
alshabib | 010c31d | 2014-09-26 10:01:12 -0700 | [diff] [blame] | 136 | builder.setVlanId(VlanId.vlanId(pcp.getVlanPcp().getValue())); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 137 | break; |
| 138 | case SET_DL_DST: |
| 139 | OFActionSetDlDst dldst = (OFActionSetDlDst) act; |
alshabib | 010c31d | 2014-09-26 10:01:12 -0700 | [diff] [blame] | 140 | builder.setEthDst( |
| 141 | MacAddress.valueOf(dldst.getDlAddr().getLong())); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 142 | break; |
| 143 | case SET_DL_SRC: |
| 144 | OFActionSetDlSrc dlsrc = (OFActionSetDlSrc) act; |
alshabib | 010c31d | 2014-09-26 10:01:12 -0700 | [diff] [blame] | 145 | builder.setEthSrc( |
| 146 | MacAddress.valueOf(dlsrc.getDlAddr().getLong())); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 147 | |
| 148 | break; |
| 149 | case SET_NW_DST: |
| 150 | OFActionSetNwDst nwdst = (OFActionSetNwDst) act; |
| 151 | IPv4Address di = nwdst.getNwAddr(); |
| 152 | if (di.isCidrMask()) { |
alshabib | 010c31d | 2014-09-26 10:01:12 -0700 | [diff] [blame] | 153 | builder.setIpDst(IpPrefix.valueOf(di.getInt(), |
| 154 | di.asCidrMaskLength())); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 155 | } else { |
alshabib | 010c31d | 2014-09-26 10:01:12 -0700 | [diff] [blame] | 156 | builder.setIpDst(IpPrefix.valueOf(di.getInt())); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 157 | } |
| 158 | break; |
| 159 | case SET_NW_SRC: |
| 160 | OFActionSetNwSrc nwsrc = (OFActionSetNwSrc) act; |
| 161 | IPv4Address si = nwsrc.getNwAddr(); |
| 162 | if (si.isCidrMask()) { |
alshabib | 010c31d | 2014-09-26 10:01:12 -0700 | [diff] [blame] | 163 | builder.setIpSrc(IpPrefix.valueOf(si.getInt(), |
| 164 | si.asCidrMaskLength())); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 165 | } else { |
alshabib | 010c31d | 2014-09-26 10:01:12 -0700 | [diff] [blame] | 166 | builder.setIpSrc(IpPrefix.valueOf(si.getInt())); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 167 | } |
| 168 | break; |
| 169 | case SET_TP_DST: |
| 170 | case SET_TP_SRC: |
| 171 | case POP_MPLS: |
| 172 | case POP_PBB: |
| 173 | case POP_VLAN: |
| 174 | case PUSH_MPLS: |
| 175 | case PUSH_PBB: |
| 176 | case PUSH_VLAN: |
| 177 | case SET_FIELD: |
| 178 | case SET_MPLS_LABEL: |
| 179 | case SET_MPLS_TC: |
| 180 | case SET_MPLS_TTL: |
| 181 | case SET_NW_ECN: |
| 182 | case SET_NW_TOS: |
| 183 | case SET_NW_TTL: |
| 184 | case SET_QUEUE: |
| 185 | case STRIP_VLAN: |
| 186 | case COPY_TTL_IN: |
| 187 | case COPY_TTL_OUT: |
| 188 | case DEC_MPLS_TTL: |
| 189 | case DEC_NW_TTL: |
| 190 | case ENQUEUE: |
| 191 | case EXPERIMENTER: |
| 192 | case GROUP: |
| 193 | default: |
| 194 | log.warn("Action type {} not yet implemented.", act.getType()); |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | return builder.build(); |
| 199 | } |
| 200 | |
| 201 | private TrafficSelector buildSelector() { |
tom | 9a693fd | 2014-10-03 11:32:19 -0700 | [diff] [blame] | 202 | TrafficSelector.Builder builder = DefaultTrafficSelector.builder(); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 203 | for (MatchField<?> field : match.getMatchFields()) { |
| 204 | switch (field.id) { |
| 205 | case IN_PORT: |
alshabib | 010c31d | 2014-09-26 10:01:12 -0700 | [diff] [blame] | 206 | builder.matchInport(PortNumber |
| 207 | .portNumber(match.get(MatchField.IN_PORT).getPortNumber())); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 208 | break; |
| 209 | case ETH_SRC: |
| 210 | MacAddress sMac = MacAddress.valueOf(match.get(MatchField.ETH_SRC).getLong()); |
alshabib | 010c31d | 2014-09-26 10:01:12 -0700 | [diff] [blame] | 211 | builder.matchEthSrc(sMac); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 212 | break; |
| 213 | case ETH_DST: |
| 214 | MacAddress dMac = MacAddress.valueOf(match.get(MatchField.ETH_DST).getLong()); |
alshabib | 010c31d | 2014-09-26 10:01:12 -0700 | [diff] [blame] | 215 | builder.matchEthDst(dMac); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 216 | break; |
| 217 | case ETH_TYPE: |
| 218 | int ethType = match.get(MatchField.ETH_TYPE).getValue(); |
alshabib | 010c31d | 2014-09-26 10:01:12 -0700 | [diff] [blame] | 219 | builder.matchEthType((short) ethType); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 220 | break; |
| 221 | case IPV4_DST: |
Ayaka Koshibe | 1d56fe4 | 2014-09-19 16:51:58 -0700 | [diff] [blame] | 222 | IpPrefix dip; |
Jonathan Hart | 0e12fad | 2014-10-17 14:54:58 -0700 | [diff] [blame^] | 223 | if (match.isPartiallyMasked(MatchField.IPV4_DST)) { |
| 224 | Masked<IPv4Address> maskedIp = match.getMasked(MatchField.IPV4_DST); |
| 225 | |
| 226 | dip = IpPrefix.valueOf( |
| 227 | maskedIp.getValue().getInt(), |
| 228 | maskedIp.getMask().asCidrMaskLength()); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 229 | } else { |
Jonathan Hart | 0e12fad | 2014-10-17 14:54:58 -0700 | [diff] [blame^] | 230 | dip = IpPrefix.valueOf( |
| 231 | match.get(MatchField.IPV4_DST).getInt(), |
| 232 | IpPrefix.MAX_INET_MASK); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 233 | } |
Jonathan Hart | 0e12fad | 2014-10-17 14:54:58 -0700 | [diff] [blame^] | 234 | |
alshabib | 010c31d | 2014-09-26 10:01:12 -0700 | [diff] [blame] | 235 | builder.matchIPDst(dip); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 236 | break; |
| 237 | case IPV4_SRC: |
Ayaka Koshibe | 1d56fe4 | 2014-09-19 16:51:58 -0700 | [diff] [blame] | 238 | IpPrefix sip; |
Jonathan Hart | 0e12fad | 2014-10-17 14:54:58 -0700 | [diff] [blame^] | 239 | if (match.isPartiallyMasked(MatchField.IPV4_SRC)) { |
| 240 | Masked<IPv4Address> maskedIp = match.getMasked(MatchField.IPV4_SRC); |
| 241 | |
| 242 | sip = IpPrefix.valueOf( |
| 243 | maskedIp.getValue().getInt(), |
| 244 | maskedIp.getMask().asCidrMaskLength()); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 245 | } else { |
Jonathan Hart | 0e12fad | 2014-10-17 14:54:58 -0700 | [diff] [blame^] | 246 | sip = IpPrefix.valueOf( |
| 247 | match.get(MatchField.IPV4_SRC).getInt(), |
| 248 | IpPrefix.MAX_INET_MASK); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 249 | } |
Jonathan Hart | 0e12fad | 2014-10-17 14:54:58 -0700 | [diff] [blame^] | 250 | |
alshabib | 010c31d | 2014-09-26 10:01:12 -0700 | [diff] [blame] | 251 | builder.matchIPSrc(sip); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 252 | break; |
| 253 | case IP_PROTO: |
| 254 | short proto = match.get(MatchField.IP_PROTO).getIpProtocolNumber(); |
alshabib | 010c31d | 2014-09-26 10:01:12 -0700 | [diff] [blame] | 255 | builder.matchIPProtocol((byte) proto); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 256 | break; |
| 257 | case VLAN_PCP: |
| 258 | byte vlanPcp = match.get(MatchField.VLAN_PCP).getValue(); |
alshabib | 010c31d | 2014-09-26 10:01:12 -0700 | [diff] [blame] | 259 | builder.matchVlanPcp(vlanPcp); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 260 | break; |
| 261 | case VLAN_VID: |
| 262 | VlanId vlanId = VlanId.vlanId(match.get(MatchField.VLAN_VID).getVlan()); |
alshabib | 010c31d | 2014-09-26 10:01:12 -0700 | [diff] [blame] | 263 | builder.matchVlanId(vlanId); |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 264 | break; |
Jonathan Hart | 34bc614 | 2014-10-17 11:00:43 -0700 | [diff] [blame] | 265 | case TCP_DST: |
| 266 | builder.matchTcpDst((short) match.get(MatchField.TCP_DST).getPort()); |
| 267 | break; |
| 268 | case TCP_SRC: |
| 269 | builder.matchTcpSrc((short) match.get(MatchField.TCP_SRC).getPort()); |
| 270 | break; |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 271 | case ARP_OP: |
| 272 | case ARP_SHA: |
| 273 | case ARP_SPA: |
| 274 | case ARP_THA: |
| 275 | case ARP_TPA: |
| 276 | case ICMPV4_CODE: |
| 277 | case ICMPV4_TYPE: |
| 278 | case ICMPV6_CODE: |
| 279 | case ICMPV6_TYPE: |
| 280 | case IN_PHY_PORT: |
| 281 | case IPV6_DST: |
| 282 | case IPV6_FLABEL: |
| 283 | case IPV6_ND_SLL: |
| 284 | case IPV6_ND_TARGET: |
| 285 | case IPV6_ND_TLL: |
| 286 | case IPV6_SRC: |
| 287 | case IP_DSCP: |
| 288 | case IP_ECN: |
| 289 | case METADATA: |
| 290 | case MPLS_LABEL: |
| 291 | case MPLS_TC: |
| 292 | case SCTP_DST: |
| 293 | case SCTP_SRC: |
alshabib | 6b5cfec | 2014-09-18 17:42:18 -0700 | [diff] [blame] | 294 | case TUNNEL_ID: |
| 295 | case UDP_DST: |
| 296 | case UDP_SRC: |
| 297 | default: |
| 298 | log.warn("Match type {} not yet implemented.", field.id); |
| 299 | |
| 300 | |
| 301 | } |
| 302 | } |
| 303 | return builder.build(); |
| 304 | } |
| 305 | |
| 306 | } |