X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflowplugin%2Fsrc%2Fmain%2Fyang%2Fopenflow-plugin-cfg-impl.yang;h=ed459ece7e87ba3adb2f6583bceb9b77d4767f87;hb=9dd9664db32bd7fa972bd414fb4e02ec83ad8e83;hp=3ac7acc27264158842ceb8496883fb0429449986;hpb=99fbf780ebe59a6faf178080d158700536e59cdd;p=openflowplugin.git diff --git a/openflowplugin/src/main/yang/openflow-plugin-cfg-impl.yang b/openflowplugin/src/main/yang/openflow-plugin-cfg-impl.yang index 3ac7acc272..ed459ece7e 100644 --- a/openflowplugin/src/main/yang/openflow-plugin-cfg-impl.yang +++ b/openflowplugin/src/main/yang/openflow-plugin-cfg-impl.yang @@ -39,6 +39,21 @@ module openflow-provider-impl { config:java-name-prefix MsgSpyService; } + // role of OFPlugin instance + typedef ofp-role { + type enumeration { + enum NOCHANGE { + description "no change to role"; + } + enum BECOMEMASTER { + description "promote current role to MASTER"; + } + enum BECOMESLAVE { + description "demote current role to SLAVE"; + } + } + } + augment "/config:modules/config:module/config:configuration" { case openflow-provider-impl { when "/config:modules/config:module/config:type = 'openflow-provider-impl'"; @@ -59,6 +74,10 @@ module openflow-provider-impl { } } } + leaf role { + type ofp-role; + default "NOCHANGE"; + } } case msg-spy-service-impl {