BUG-5110 Enable pinging any router
[ovsdb.git] / openstack / net-virt-providers / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / providers / openflow13 / Service.java
1 /*
2  * Copyright (c) 2014 - 2016 Red Hat, Inc. and others. All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.ovsdb.openstack.netvirt.providers.openflow13;
10
11 import java.util.Comparator;
12
13 public enum Service {
14
15     CLASSIFIER ((short) 0, "Classifier"),
16     GATEWAY_RESOLVER((short) 0, "External Network Gateway Resolver"),
17     DIRECTOR ((short) 10, "Director"),
18     SFC_CLASSIFIER ((short) 10, "SFC Classifier"),
19     ARP_RESPONDER ((short) 20, "Distributed ARP Responder"),
20     INBOUND_NAT ((short) 30, "DNAT for inbound floating-ip traffic"),
21     EGRESS_ACL ((short) 40, "Egress Acces-control"),
22     LOAD_BALANCER ((short) 50, "Distributed LBaaS"),
23     ROUTING ((short) 60, "Distributed Virtual Routing (DVR)"),
24     ICMP_ECHO ((short) 70, "Distributed ICMP Echo Responder"),
25     L3_FORWARDING ((short) 70, "Layer 3 forwarding/lookup service"),
26     L2_REWRITE ((short) 80, "Layer2 rewrite service"),
27     INGRESS_ACL ((short) 90, "Ingress Acces-control"),
28     OUTBOUND_NAT ((short) 100, "DNAT for outbound floating-ip traffic"),
29     L2_FORWARDING ((short) 110, "Layer2 mac,vlan based forwarding");
30
31     short table;
32     String description;
33
34     Service(short table, String description)  {
35         this.table = table;
36         this.description = description;
37     }
38
39     public short getTable() {
40         return table;
41     }
42
43     public String getDescription() {
44         return description;
45     }
46
47     public static Comparator<Service> insertComparator = new Comparator<Service>() {
48
49         @Override
50         public int compare(Service service1, Service service2) {
51             return service1.getTable() - service2.getTable();
52         }
53     };
54 }