Merge "Define new API for context chain and context chain holder."
authorJozef Bacigal <jozef.bacigal@pantheon.tech>
Fri, 10 Mar 2017 09:09:09 +0000 (09:09 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 10 Mar 2017 09:09:09 +0000 (09:09 +0000)
1  2 
openflowplugin-api/src/main/yang/openflow-provider-config.yang

index 95d50b04d60d2c406b40f1b89566846bf5693379,eedf355e0e65194a7527ef6bfb80cdc0e0b48c85..2b5e781bcc10470f447092df385ba86d18d15fc7
@@@ -114,7 -130,29 +130,29 @@@ module openflow-provider-config 
              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 "false";
 +            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;
+             }
+         }
      }
  }