"Initial revision";
}
- typedef context-chain-state {
- description "Context chain state";
- type enumeration {
- enum SLEEPING {
- description "Context chain is sleeping without a connection.";
- }
- enum WORKING_MASTER {
- description "Context chain is working as MASTER.";
- }
- enum WORKING_SLAVE {
- description "Context chain is working as SLAVE, initial gathering already done.";
- }
- enum INITIALIZED {
- description "Context chain is created is working as SLAVE initial gathering need to be done.";
- }
- }
- }
-
-
typedef non-zero-uint32-type {
type uint32 {
range "1..max";
container openflow-provider-config {
leaf rpc-requests-quota {
- type uint32;
+ description "Quota for maximum number of RPC requests";
+ type non-zero-uint16-type;
default 20000;
}
leaf switch-features-mandatory {
+ description "This parameter indicates whether it is mandatory for
+ switch to support OF1.3 features : table, flow, meter,group. If this
+ is set to true and switch doesn't support these features its
+ connection will be denied.";
type boolean;
default false;
}
leaf global-notification-quota {
+ description "Global notification quota";
type uint32;
default 64000;
}
leaf is-statistics-polling-on {
+ description "If enabled, periodic statistics gathering will be
+ turned on. If false takes precedence over the per-capability configuration.";
+ type boolean;
+ default "true";
+ }
+
+ leaf is-table-statistics-polling-on {
+ description "If enabled, periodic table statistics gathering will be
+ turned on";
+ type boolean;
+ default "true";
+ }
+
+ leaf is-flow-statistics-polling-on {
+ description "If enabled, periodic flow statistics gathering will be
+ turned on";
+ type boolean;
+ default "true";
+ }
+
+ leaf is-group-statistics-polling-on {
+ description "If enabled, periodic group statistics gathering will be
+ turned on";
+ type boolean;
+ default "true";
+ }
+
+ leaf is-meter-statistics-polling-on {
+ description "If enabled, periodic meter statistics gathering will be
+ turned on";
+ type boolean;
+ default "true";
+ }
+
+ leaf is-port-statistics-polling-on {
+ description "If enabled, periodic port statistics gathering will be
+ turned on";
+ type boolean;
+ default "true";
+ }
+
+ leaf is-queue-statistics-polling-on {
+ description "If enabled, periodic queue statistics gathering will be
+ turned on";
type boolean;
default "true";
}
leaf is-statistics-rpc-enabled {
- description "Deprecated - exposing backward compatible statistics rpcs providing result in form of async notification";
+ status deprecated;
+ description "Expose backward compatible statistics rpcs providing
+ result in form of async notification. This is deprecated, use direct
+ statistics instead.";
type boolean;
default "false";
}
leaf barrier-interval-timeout-limit {
+ description "Barrier timeout";
type non-zero-uint32-type;
default 500;
}
leaf barrier-count-limit {
+ description "Barrier limit";
type non-zero-uint16-type;
default 25600;
}
leaf echo-reply-timeout {
+ description "How long we should wait for echo reply (value is in
+ milliseconds";
type non-zero-uint32-type;
default 2000;
}
}
leaf thread-pool-timeout {
- description "After how much time (in seconds) of inactivity will be threads in pool terminated";
+ description "After how much time (in seconds) of inactivity will be
+ threads in pool terminated";
type uint32;
default 60;
}
}
leaf skip-table-features {
- description "Ability to skip pulling and storing of large table features. These features are still
- available via rpc but if set to true then maintenance in DS will be omitted";
+ description "Ability to skip pulling and storing of large table
+ features. These features are still available via rpc but if set to
+ true then maintenance in DS will be omitted";
type boolean;
default "true";
}
leaf basic-timer-delay {
- description "initial delay used in polling the statistics, value is in milliseconds";
+ description "Initial delay used in polling the statistics, value is
+ in milliseconds";
type non-zero-uint32-type;
default 3000;
}
leaf maximum-timer-delay {
- description "maximum timer delay is the wait time to collect next statistics
- used in polling the statistics, value is in milliseconds";
+ description "Maximum timer delay is the wait time to collect next
+ statistics used in polling the statistics, value is in
+ milliseconds";
type non-zero-uint32-type;
default 900000;
}
leaf use-single-layer-serialization {
- description "When true, Yang models are serialized and deserialized directly to and from format supported
- by device, so serialization and deserialization is faster. Otherwise, models are first serialized to
- Openflow specification models and then to format supported by device, and reversed when deserializing.";
+ description "When true, Yang models are serialized and deserialized
+ directly to and from format supported by device, so serialization
+ and deserialization is faster. Otherwise, models are first
+ serialized to Openflow specification models and then to format
+ supported by device, and reversed when deserializing.";
type boolean;
default "true";
}
- container context-chain-config {
-
- leaf ttl-before-drop {
- description "TTL in miliseconds without connection before the context chain shall be dropped";
- type uint32;
- default 5000;
- }
-
- leaf never-drop-contexts-on {
- description "if true then context chain will not be droped, otherwise use ttl-before-drop";
- type boolean;
- default true;
- }
-
- leaf context-chain-startup-state {
- description "this will set the default state of context chain after creation";
- type context-chain-state;
- default WORKING_SLAVE;
- }
-
- leaf number-of-needed-managers {
- description "chceck number for needed managers";
- type uint16;
- default 3;
- }
-
- }
-
}
}