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.ovsdb.openstack.netvirt.sfc.standalone.openflow13.services;
11 import org.opendaylight.ovsdb.openstack.netvirt.providers.ConfigInterface;
12 import org.opendaylight.ovsdb.openstack.netvirt.providers.openflow13.AbstractServiceInstance;
13 import org.opendaylight.ovsdb.openstack.netvirt.providers.openflow13.Service;
14 import org.opendaylight.ovsdb.openstack.netvirt.sfc.ISfcClassifierService;
15 import org.opendaylight.ovsdb.openstack.netvirt.sfc.NshUtils;
16 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev150317.access.lists.acl.access.list.entries.ace.Matches;
17 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.IpAddress;
18 import org.osgi.framework.BundleContext;
19 import org.osgi.framework.ServiceReference;
20 import org.slf4j.Logger;
21 import org.slf4j.LoggerFactory;
23 public class SfcClassifierService extends AbstractServiceInstance implements ConfigInterface, ISfcClassifierService {
24 private static final Logger LOG = LoggerFactory.getLogger(SfcClassifierService.class);
26 public SfcClassifierService(Service service) {
30 public SfcClassifierService() {
31 super(Service.SFC_CLASSIFIER);
35 public void setDependencies(BundleContext bundleContext, ServiceReference serviceReference) {
36 super.setDependencies(bundleContext.getServiceReference(SfcClassifierService.class.getName()), this);
40 public void setDependencies(Object impl) {}
43 public void programIngressClassifier(long dataPathId, String ruleName, Matches matches, NshUtils nshHeader, long vxGpeOfPort, boolean write) {
48 public void programSfcTable(long dataPathId, long vxGpeOfPort, short goToTableId, boolean write) {
53 public void programEgressClassifier1(long dataPathId, long vxGpeOfPort, long nsp, short nsi, int tunnelOfPort, int tunnelId, short gotoTableId, boolean write) {
58 public void programEgressClassifier(long dataPathId, long vxGpeOfPort, long nsp, short nsi, long sfOfPort, int tunnelId, boolean write) {
63 public void programEgressClassifierBypass(long dataPathId, long vxGpeOfPort, long nsp, short nsi, long sfOfPort, int tunnelId, boolean write) {
68 public void program_sfEgress(long dataPathId, int dstPort, boolean write) {
73 public void program_sfIngress(long dataPathId, int dstPort, long sfOfPort, String ipAddress, String sfDplName, boolean write) {
78 public void programStaticArpEntry(long dataPathId, long ofPort, String macAddressStr, String ipAddress, boolean write) {