Committed by
Jonathan Hart
[ONOS-4523] Add SetField of ARP_OP, ARP_SHA, ARP_SPA.
Change-Id: I48dfcebaddc9149e830a0ad7cc7223fd604c9e8f
Showing
1 changed file
with
14 additions
and
0 deletions
... | @@ -543,8 +543,22 @@ public class FlowEntryBuilder { | ... | @@ -543,8 +543,22 @@ public class FlowEntryBuilder { |
543 | } | 543 | } |
544 | break; | 544 | break; |
545 | case ARP_OP: | 545 | case ARP_OP: |
546 | + @SuppressWarnings("unchecked") | ||
547 | + OFOxm<org.projectfloodlight.openflow.types.ArpOpcode> arpop = | ||
548 | + (OFOxm<org.projectfloodlight.openflow.types.ArpOpcode>) oxm; | ||
549 | + builder.setArpOp((short) arpop.getValue().getOpcode()); | ||
550 | + break; | ||
546 | case ARP_SHA: | 551 | case ARP_SHA: |
552 | + @SuppressWarnings("unchecked") | ||
553 | + OFOxm<org.projectfloodlight.openflow.types.MacAddress> arpsha = | ||
554 | + (OFOxm<org.projectfloodlight.openflow.types.MacAddress>) oxm; | ||
555 | + builder.setArpSha(MacAddress.valueOf(arpsha.getValue().getLong())); | ||
556 | + break; | ||
547 | case ARP_SPA: | 557 | case ARP_SPA: |
558 | + @SuppressWarnings("unchecked") | ||
559 | + OFOxm<IPv4Address> arpspa = (OFOxm<IPv4Address>) oxm; | ||
560 | + builder.setArpSpa(Ip4Address.valueOf(arpspa.getValue().getInt())); | ||
561 | + break; | ||
548 | case ARP_THA: | 562 | case ARP_THA: |
549 | case ARP_TPA: | 563 | case ARP_TPA: |
550 | case BSN_EGR_PORT_GROUP_ID: | 564 | case BSN_EGR_PORT_GROUP_ID: | ... | ... |
-
Please register or login to post a comment