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.netvirt.vpnmanager;
10 import java.util.Objects;
11 import org.opendaylight.genius.mdsalutil.NwConstants;
13 public enum ArpReplyOrRequest {
14 REQUEST("ARP-REQUEST"), REPLY("ARP-REPLY");
18 ArpReplyOrRequest(String name) {
22 public String getName() {
26 public int getArpOperation() {
28 (Objects.equals(name, ArpReplyOrRequest.REQUEST.getName())
29 ? NwConstants.ARP_REQUEST : NwConstants.ARP_REPLY);
33 public int calculateConsistentHashCode() {
34 if (this.name != null) {
35 return this.name.hashCode();