2 * Copyright © 2015, 2016 Dell, 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;
11 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
12 import org.opendaylight.controller.md.sal.binding.api.DataTreeIdentifier;
13 import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.netvirt.sfc.classifier.rev150105.Classifiers;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.netvirt.sfc.classifier.rev150105.classifiers.Classifier;
17 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
20 * Data tree listener for Classifier.
24 public class NetvirtSfcClassifierListener extends DelegatingDataTreeListener<Classifier> {
26 * {@link NetvirtSfcClassifierListener} constructor.
27 * @param provider OpenFlow 1.3 Provider
28 * @param db MdSal {@link DataBroker}
30 public NetvirtSfcClassifierListener(final INetvirtSfcOF13Provider provider, final DataBroker db) {
31 super(provider, new NetvirtSfcClassifierDataProcessor(provider, db), db,
32 new DataTreeIdentifier<>(LogicalDatastoreType.CONFIGURATION,
33 InstanceIdentifier.create(Classifiers.class).child(Classifier.class)));