Initial pass at changing groupId
[netvirt.git] / openstack / net-virt-sfc / impl / src / main / java / org / opendaylight / netvirt / openstack / netvirt / sfc / workaround / services / FlowNames.java
1 /*
2  * Copyright © 2015 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.netvirt.openstack.netvirt.sfc.workaround.services;
10
11 public class FlowNames {
12
13     public static String getSfcIngressClass(String ruleName, long nsp, short nsi) {
14         return "sfcIngressClass_" + nsp + "_" + nsi + "_" + ruleName;
15     }
16
17     public static String getSfcTable(long vxGpeOfPort) {
18         return "sfcTable_" + vxGpeOfPort;
19     }
20
21     public static String getSfcEgressClass1(long vxGpeOfPort) {
22         return "sfcEgressClass1_" + vxGpeOfPort;
23     }
24
25     public static String getSfcEgressClass(long vxGpeOfPort, long nsp, short nsi) {
26         return "sfcEgressClass_" + nsp + "_" + nsi + "_" + vxGpeOfPort;
27     }
28
29     public static String getSfcEgressClassBypass(long nsp, short nsi, long sfOfPort) {
30         return "sfcEgressClassBypass_" + nsp + "_" + nsi + "_"  + sfOfPort;
31     }
32
33     public static String getSfEgress(int dstPort) {
34         return "sfEgress_" + dstPort;
35     }
36
37     public static String getSfIngress(int dstPort, String ipAddress) {
38         return "sfIngress_" + dstPort + "_" + ipAddress;
39     }
40
41     public static String getArpResponder(String ipAddress) {
42         return "ArpResponder_" + ipAddress;
43     }
44 }