2 * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.vpnservice;
10 import org.opendaylight.vpnservice.mdsalutil.NwConstants;
12 public enum ArpReplyOrRequest {
13 REQUEST("ARP-REQUEST"), REPLY("ARP-REPLY");
17 ArpReplyOrRequest(String name) {
21 public String getName() {
25 public int getArpOperation(){
26 int arpOperation = (name == ArpReplyOrRequest.REQUEST.getName() ? NwConstants.ARP_REQUEST : NwConstants.ARP_REPLY);
29 public int calculateConsistentHashCode() {
30 if (this.name != null) {
31 return this.name.hashCode();