<scope>runtime</scope>
</dependency>
<dependency>
- <groupId>org.opendaylight.packetcable</groupId>
- <artifactId>packetcable-policy-config</artifactId>
- <version>${project.version}</version>
- <classifier>config</classifier>
- <type>xml</type>
+ <groupId>org.opendaylight.packetcable</groupId>
+ <artifactId>packetcable-policy-server</artifactId>
+ <version>${project.version}</version>
+ <classifier>config</classifier>
+ <type>xml</type>
</dependency>
<dependency>
<groupId>org.opendaylight.packetcable</groupId>
<scope>test</scope>
</dependency>
</dependencies>
-</project>
\ No newline at end of file
+</project>
<feature version='${project.version}'>odl-packetcable-policy-model</feature>
<bundle>mvn:org.opendaylight.packetcable/packetcable-policy-server/${project.version}</bundle>
<bundle>mvn:org.opendaylight.packetcable/packetcable-driver/${project.version}</bundle>
- <configfile finalname="etc/opendaylight/karaf/80-packetcable.xml">mvn:org.opendaylight.packetcable/packetcable-policy-config/${project.version}/xml/config</configfile>
+ <configfile finalname="etc/opendaylight/karaf/80-packetcable.xml">mvn:org.opendaylight.packetcable/packetcable-policy-server/${project.version}/xml/config</configfile>
</feature>
</features>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
-
- This program and the accompanying materials are made available under the
- terms of the Eclipse Public License v1.0 which accompanies this distribution,
- and is available at http://www.eclipse.org/legal/epl-v10.html
---><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <artifactId>packetcable</artifactId>
- <groupId>org.opendaylight.packetcable</groupId>
- <version>1.3.0-SNAPSHOT</version>
- </parent>
- <!--
- Necessary TODO: Hookup your parent pom here, else you will not get necessary versions,
- maven repos etc. If you run this archetype in a subdirectory of your project, it
- will pick the pom.xml from the parent directory as the parent pom, which may or may
- not be correct.
- -->
- <!--
- Necessary TODO: Replace the contents of src/main/resources/80-packetcable.xml with
- the proper config subsystem contents for your module
- -->
- <artifactId>packetcable-policy-config</artifactId>
- <groupId>org.opendaylight.packetcable</groupId>
- <description>Configuration files for md-sal</description>
- <!-- Optional TODO: Uncomment version if you are not using a parent pom.xml
- <version>1.2.0-SNAPSHOT</version>
- -->
- <packaging>jar</packaging>
- <properties>
- <!-- Optional TODO: Rename your configfile to taste -->
- <configfile>default-config.xml</configfile>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-artifacts</id>
- <goals>
- <goal>attach-artifact</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <artifacts>
- <artifact>
- <file>${project.build.directory}/classes/${configfile}</file>
- <type>xml</type>
- <classifier>config</classifier>
- </artifact>
- <!--
- Optional TODO: Add additional config files
- You may need to add more than one config file
- if so, you just need to add additional <artifact> entries
- here WITH DIFFERENT CLASSIFIERS
- Example:
- <artifact>
- <file>${project.build.directory}/classes/<another-configfile></file>
- <type>xml</type>
- <classifier>config-<meaningful suffix to describe your other configfile></classifier>
- </artifact>
- -->
- </artifacts>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <scm>
- <connection>scm:git:ssh://git.opendaylight.org:29418/packetcable.git</connection>
- <developerConnection>scm:git:ssh://git.opendaylight.org:29418/packetcable.git</developerConnection>
- <tag>HEAD</tag>
- <url>https://git.opendaylight.org/gerrit/gitweb?p=packetcable.git;a=summary</url>
- </scm>
-</project>
<artifactId>yang-common</artifactId>
</dependency>
</dependencies>
-</project>
\ No newline at end of file
+</project>
import org.opendaylight.yangtools.concepts.ListenerRegistration;
import org.opendaylight.yangtools.yang.binding.DataObject;
import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.FrameworkUtil;
-import org.osgi.framework.ServiceRegistration;
import org.pcmm.rcd.IPCMMClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
*/
private DataBroker dataBroker;
- private ServiceRegistration<PacketcableProvider> packetcableProviderRegistration;
-
private ListenerRegistration<DataChangeListener> ccapDataChangeListenerRegistration;
private ListenerRegistration<DataChangeListener> qosDataChangeListenerRegistration;
dataBroker = session.getSALService(DataBroker.class);
- BundleContext context = FrameworkUtil.getBundle(this.getClass()).getBundleContext();
- packetcableProviderRegistration = context.registerService(PacketcableProvider.class, this, null);
-
ccapDataChangeListenerRegistration =
dataBroker.registerDataChangeListener(LogicalDatastoreType.CONFIGURATION,
PacketcableProvider.ccapIID, this, DataBroker.DataChangeScope.SUBTREE );
@Override
public void close() throws ExecutionException, InterruptedException {
executor.shutdown();
- if (packetcableProviderRegistration != null) {
- packetcableProviderRegistration.unregister();
- }
if (ccapDataChangeListenerRegistration != null) {
ccapDataChangeListenerRegistration.close();
}
<module>packetcable-policy-model</module>
<module>packetcable-policy-server</module>
<module>features-packetcable-policy</module>
- <module>packetcable-policy-config</module>
<module>packetcable-policy-karaf</module>
<!-- Jar module CMTS emulator for testing -->