2 * Copyright (c) 2014 - 2016 Red Hat, Inc. 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
9 package org.opendaylight.ovsdb.openstack.netvirt.providers.openflow13;
11 import java.util.Comparator;
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");
34 Service(short table, String description) {
36 this.description = description;
39 public short getTable() {
43 public String getDescription() {
47 public static Comparator<Service> insertComparator = new Comparator<Service>() {
50 public int compare(Service service1, Service service2) {
51 return service1.getTable() - service2.getTable();