1 // vi: set smarttab et sw=4 tabstop=4:
2 module protocol-framework {
4 namespace "urn:opendaylight:params:xml:ns:yang:controller:protocol:framework";
7 import config { prefix config; revision-date 2013-04-05; }
8 import netty { prefix netty; revision-date 2013-11-19; }
10 organization "Cisco Systems, Inc.";
12 contact "Milos Fabian <milfabia@cisco.com>";
15 "This module contains the base YANG definitions for
18 Copyright (c)2013 Cisco Systems, Inc. All rights reserved.;
20 This program and the accompanying materials are made available
21 under the terms of the Eclipse Public License v1.0 which
22 accompanies this distribution, and is available at
23 http://www.eclipse.org/legal/epl-v10.html";
25 revision "2014-03-13" {
27 "Changed reconnect-strategy to reconnect-strategy-factory - represents ReconnectStrategyFactory.
28 reconnect-strategy-factory modules provides reconnect-strategy-factory service.";
31 revision "2013-11-09" {
36 identity reconnect-strategy-factory {
38 "Service representing a reconnect strategy factory.";
40 base "config:service-type";
41 config:java-class "org.opendaylight.protocol.framework.ReconnectStrategyFactory";
44 identity never-reconnect-strategy-factory {
45 base config:module-type;
46 config:provided-service reconnect-strategy-factory;
47 config:java-name-prefix NeverReconnectStrategyFactory;
50 augment "/config:modules/config:module/config:configuration" {
51 case never-reconnect-strategy-factory {
52 when "/config:modules/config:module/config:type = 'never-reconnect-strategy-factory'";
60 uses config:service-ref {
63 config:required-identity netty:netty-event-executor;
70 identity reconnect-immediately-strategy-factory {
71 base config:module-type;
72 config:provided-service reconnect-strategy-factory;
73 config:java-name-prefix ReconnectImmediatelyStrategyFactory;
76 augment "/config:modules/config:module/config:configuration" {
77 case reconnect-immediately-strategy-factory {
78 when "/config:modules/config:module/config:type = 'reconnect-immediately-strategy-factory'";
86 uses config:service-ref {
89 config:required-identity netty:netty-event-executor;
96 identity timed-reconnect-strategy-factory {
97 base config:module-type;
98 config:provided-service reconnect-strategy-factory;
99 config:java-name-prefix TimedReconnectStrategyFactory;
102 augment "/config:modules/config:module/config:configuration" {
103 case timed-reconnect-strategy-factory {
104 when "/config:modules/config:module/config:type = 'timed-reconnect-strategy-factory'";
108 units "epoch nanoseconds";
119 units "milliseconds";
125 units "milliseconds";
138 units "milliseconds";
141 container executor3 {
142 uses config:service-ref {
145 config:required-identity netty:netty-event-executor;