X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=groupbasedpolicy%2Fsrc%2Fmain%2Fyang%2Fmodel%2Fcommon.yang;h=2e63e9a0e992fa7d882c657896e6c40a14cfa73e;hb=refs%2Fchanges%2F42%2F29642%2F14;hp=474ee33013e615b904049a3e6f16d98749bbed5a;hpb=8327271998990e3e501ac2e552dd457535153d77;p=groupbasedpolicy.git diff --git a/groupbasedpolicy/src/main/yang/model/common.yang b/groupbasedpolicy/src/main/yang/model/common.yang old mode 100644 new mode 100755 index 474ee3301..2e63e9a0e --- a/groupbasedpolicy/src/main/yang/model/common.yang +++ b/groupbasedpolicy/src/main/yang/model/common.yang @@ -12,7 +12,7 @@ module gbp-common { namespace "urn:opendaylight:groupbasedpolicy:common"; prefix "gbp-common"; - description + description "Common types and definitions for group-based policy models"; revision "2014-04-21" { @@ -31,8 +31,8 @@ module gbp-common { } typedef name { - description - "A generic string name type. + description + "A generic string name type. Must start with a letter"; type string { pattern '[a-zA-Z]([a-zA-Z0-9\-_.])*'; @@ -47,7 +47,7 @@ module gbp-common { + '[0-9a-fA-F]{4}-[0-9a-fA-F]{12}'; } description - "A Universally Unique IDentifier in the string representation + "A Universally Unique IDentifier in the string representation defined in RFC 4122. The canonical representation uses lowercase characters. @@ -63,6 +63,13 @@ module gbp-common { description "A globally unique identifier"; } + typedef unique-id-string { + type string { + length "1..256"; + } + description "A globally unique identifier (based on String)"; + } + // ************* // Relator names // ************* @@ -90,7 +97,7 @@ module gbp-common { type unique-id; description "A unique ID for a network domain"; } - + typedef subnet-id { type network-domain-id; description "A unique ID for a subnet"; @@ -218,7 +225,7 @@ module gbp-common { // **************** typedef subject-feature-id { - type unique-id; + type unique-id-string; description "A unique ID for a parameterized object"; }