2 * Copyright © 2015 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.netvirt.openstack.netvirt.sfc.workaround.services;
11 public class FlowNames {
13 public static String getSfcIngressClass(String ruleName, long nsp, short nsi) {
14 return "sfcIngressClass_" + nsp + "_" + nsi + "_" + ruleName;
17 public static String getSfcTable(long vxGpeOfPort) {
18 return "sfcTable_" + vxGpeOfPort;
21 public static String getSfcEgressClass1(long vxGpeOfPort) {
22 return "sfcEgressClass1_" + vxGpeOfPort;
25 public static String getSfcEgressClass(long vxGpeOfPort, long nsp, short nsi) {
26 return "sfcEgressClass_" + nsp + "_" + nsi + "_" + vxGpeOfPort;
29 public static String getSfcEgressClassBypass(long nsp, short nsi, long sfOfPort) {
30 return "sfcEgressClassBypass_" + nsp + "_" + nsi + "_" + sfOfPort;
33 public static String getSfEgress(int dstPort) {
34 return "sfEgress_" + dstPort;
37 public static String getSfIngress(int dstPort, String ipAddress) {
38 return "sfIngress_" + dstPort + "_" + ipAddress;
41 public static String getArpResponder(String ipAddress) {
42 return "ArpResponder_" + ipAddress;