prefix sfc-common;
+ organization "Cisco Systems, Inc.";
+
description
"Common typedefs and leafrefs for project";
revision 2015-10-17 {
description
"Initial revision";
+ reference "https://tools.ietf.org/html/draft-penno-sfc-yang";
}
// typedef for Service Node
// typedefs for Service Function Chain
typedef sfc-name {
type string;
+ description "Service Function Chain Name";
}
// typedefs for Service Function
typedef sf-data-plane-locator-name {
type string;
description
- "A unique name for SF data-plane-locator";
+ "A unique name for SF data-plane-locator";
}
// typedefs for Rendererd Service Paths
typedef rsp-name {
type string;
description
- "Rendererd Service Path Name Type";
+ "Rendererd Service Path Name Type";
}
// typedefs for Service Function Path
typedef sff-data-plane-locator-name {
type string;
description
- "Service Function Forwarder data-plane-locator name type";
+ "Service Function Forwarder data-plane-locator name type";
}
typedef sff-name {
import config { prefix config; revision-date 2013-04-05; }
import rpc-context { prefix rpcx; revision-date 2013-06-17; }
- import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; }
+ import opendaylight-md-sal-binding {
+ prefix mdsal;
+ revision-date 2013-10-28;
+ }
+
+ organization "Cisco Systems, Inc.";
description
- "This module contains the base YANG definitions for
- sfc-provider impl implementation.";
+ "This module contains the base YANG definitions for
+ sfc-provider impl implementation.";
revision "2014-06-30" {
- description
- "Initial revision.";
+ description "Initial revision.";
+ reference "https://tools.ietf.org/html/draft-penno-sfc-yang";
}
- // This is the definition of the service implementation as a module identity
identity sfc-provider-impl {
- base config:module-type;
+ base config:module-type;
+ description
+ "This is the definition of the service implementation" +
+ "as a module identity";
// Specifies the prefix for generated java classes.
config:java-name-prefix SfcProvider;
}
-
- // Augments the 'configuration' choice node under modules/module.
augment "/config:modules/config:module/config:configuration" {
+ description
+ "Augments the 'configuration' choice node under
+ modules/module.";
case sfc-provider-impl {
- when "/config:modules/config:module/config:type = 'sfc-provider-impl'";
+ when "/config:modules/config:module/config:type =
+ 'sfc-provider-impl'";
- //wires in the data-broker service
container data-broker {
+ description
+ "wires in the data broker registry service";
uses config:service-ref {
refine type {
- mandatory false;
- config:required-identity mdsal:binding-async-data-broker;
+ mandatory false;
+ config:required-identity mdsal:binding-async-data-broker;
}
}
}
container binding-registry {
- uses config:service-ref {
- refine type {
- mandatory true;
- config:required-identity mdsal:binding-broker-osgi-registry;
- }
+ description
+ "wires in the binding broker osgi service";
+ uses config:service-ref {
+ refine type {
+ mandatory true;
+ config:required-identity
+ mdsal:binding-broker-osgi-registry;
}
+ }
}
container rpc-registry {
+ description
+ "wires in the RPC registry service";
uses config:service-ref {
refine type {
mandatory true;
+++ /dev/null
-/**
- * Copyright (c) 2015 Intel Ltd. 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
- *
- */
-package org.opendaylight.controller.config.yang.config.sfc_scf_ofrenderer.impl;
-
-import org.opendaylight.sfc.scfofrenderer.SfcScfOfRenderer;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class SfcScfOfRendererModule extends org.opendaylight.controller.config.yang.config.sfc_scf_ofrenderer.impl.AbstractSfcScfOfRendererModule {
-
- private static final Logger LOG = LoggerFactory.getLogger(SfcScfOfRendererModule.class);
-
- public SfcScfOfRendererModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
- org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
- super(identifier, dependencyResolver);
- }
-
- public SfcScfOfRendererModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
- org.opendaylight.controller.config.api.DependencyResolver dependencyResolver,
- org.opendaylight.controller.config.yang.config.sfc_scf_ofrenderer.impl.SfcScfOfRendererModule oldModule,
- java.lang.AutoCloseable oldInstance) {
- super(identifier, dependencyResolver, oldModule, oldInstance);
- }
-
- @Override
- public void customValidation() {
- // add custom validation form module attributes here.
- }
-
- @Override
- public java.lang.AutoCloseable createInstance() {
- LOG.info("SFC SCF OF Renderer initializing");
-
- final SfcScfOfRenderer openflowSfcRenderer = new SfcScfOfRenderer(getDataBrokerDependency(), getNotificationServiceDependency());
-
- java.lang.AutoCloseable ret = new java.lang.AutoCloseable() {
- @Override
- public void close() throws Exception {
- openflowSfcRenderer.close();
- }
- };
-
- LOG.info("SFC SCF OF Renderer initialized: (instance {})", ret);
-
- return ret;
- }
-}
--- /dev/null
+package org.opendaylight.controller.config.yang.config.sfc_scf_openflow_provider.impl;
+
+import org.opendaylight.sfc.scfofrenderer.SfcScfOfRenderer;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class SfcScfOfRendererModule extends org.opendaylight.controller.config.yang.config.sfc_scf_openflow_provider.impl.AbstractSfcScfOfRendererModule {
+
+ private static final Logger LOG = LoggerFactory.getLogger(SfcScfOfRendererModule.class);
+
+ public SfcScfOfRendererModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
+ super(identifier, dependencyResolver);
+ }
+
+ public SfcScfOfRendererModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.controller.config.yang.config.sfc_scf_openflow_provider.impl.SfcScfOfRendererModule oldModule, java.lang.AutoCloseable oldInstance) {
+ super(identifier, dependencyResolver, oldModule, oldInstance);
+ }
+
+ @Override
+ public void customValidation() {
+ // add custom validation form module attributes here.
+ }
+
+ @Override
+ public java.lang.AutoCloseable createInstance() {
+ final SfcScfOfRenderer sfcScfOfRenderer = new SfcScfOfRenderer(getDataBrokerDependency(), getNotificationServiceDependency());
+
+ java.lang.AutoCloseable ret = new java.lang.AutoCloseable() {
+ @Override
+ public void close() throws Exception {
+ sfcScfOfRenderer.close();
+ }
+ };
+
+ LOG.info("SFC SCF openflow initialized: (instance {})", ret);
+
+ return ret;
+ }
+
+}
/*
* Generated file
*
-* Generated from: yang module name: sfc-scf-ofrenderer-impl yang module local name: sfc-scf-ofrenderer-impl
+* Generated from: yang module name: sfc-scf-openflow-provider-impl yang module local name: sfc-scf-openflow-provider-impl
* Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
-* Generated at: Fri Sep 18 02:39:37 UTC 2015
+* Generated at: Sun Oct 25 21:22:23 PDT 2015
*
* Do not modify this file unless it is present under src/main directory
*/
-package org.opendaylight.controller.config.yang.config.sfc_scf_ofrenderer.impl;
-public class SfcScfOfRendererModuleFactory extends org.opendaylight.controller.config.yang.config.sfc_scf_ofrenderer.impl.AbstractSfcScfOfRendererModuleFactory {
+package org.opendaylight.controller.config.yang.config.sfc_scf_openflow_provider.impl;
+public class SfcScfOfRendererModuleFactory extends org.opendaylight.controller.config.yang.config.sfc_scf_openflow_provider.impl.AbstractSfcScfOfRendererModuleFactory {
}
<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
<module>
- <type xmlns:sfc="urn:opendaylight:params:xml:ns:yang:controller:config:sfc-scf-ofrenderer:impl">
- sfc:sfc-scf-ofrenderer-impl
+ <type xmlns:sfc="urn:opendaylight:params:xml:ns:yang:controller:config:sfc-scf-openflow-provider:impl">
+ sfc:sfc-scf-openflow-provider-impl
</type>
- <name>sfc-scf-ofrenderer-impl</name>
+ <name>sfc-scf-openflow-provider-impl</name>
<rpc-registry>
<type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-rpc-registry</type>
<required-capabilities>
<capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding?module=opendaylight-md-sal-binding&revision=2013-10-28</capability>
<capability>urn:opendaylight:params:xml:ns:yang:controller:config:sfc-provider:impl?module=sfc-provider-impl&revision=2014-06-30</capability>
- <capability>urn:opendaylight:params:xml:ns:yang:controller:config:sfc-scf-ofrenderer:impl?module=sfc-scf-ofrenderer-impl&revision=2014-09-01</capability>
+ <capability>urn:opendaylight:params:xml:ns:yang:controller:config:sfc-scf-openflow-provider:impl?module=sfc-scf-openflow-provider-impl&revision=2014-09-01</capability>
</required-capabilities>
</snapshot>
// vi: set smarttab et sw=4 tabstop=4:
-module sfc-scf-ofrenderer-impl {
+module sfc-scf-openflow-provider-impl {
yang-version 1;
- namespace "urn:opendaylight:params:xml:ns:yang:controller:config:sfc-scf-ofrenderer:impl";
- prefix "sfc-scf-ofrenderer-impl";
+ namespace "urn:opendaylight:params:xml:ns:yang:controller:config:sfc-scf-openflow-provider:impl";
+ prefix "sfc-scf-openflow-provider-impl";
import config { prefix config; revision-date 2013-04-05; }
import rpc-context { prefix rpcx; revision-date 2013-06-17; }
}
// This is the definition of the service implementation as a module identity
- identity sfc-scf-ofrenderer-impl {
+ identity sfc-scf-openflow-provider-impl {
base config:module-type;
// Specifies the prefix for generated java classes.
// Augments the 'configuration' choice node under modules/module.
augment "/config:modules/config:module/config:configuration" {
- case sfc-scf-ofrenderer-impl {
- when "/config:modules/config:module/config:type = 'sfc-scf-ofrenderer-impl'";
+ case sfc-scf-openflow-provider-impl {
+ when "/config:modules/config:module/config:type = 'sfc-scf-openflow-provider-impl'";
//wires in the data-broker service
container data-broker {