X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=elanmanager%2Felanmanager-api%2Fsrc%2Fmain%2Fyang%2Felan.yang;h=5ec20678067968af459c724155149ad9fa23e03e;hb=00790a95c5e403cb62d2cc544af55e8ab3fef03b;hp=5b4b105542a3786092c4940e982528a869f243b8;hpb=4110307879cad1aa54943aedbf937b2f21575b4c;p=vpnservice.git diff --git a/elanmanager/elanmanager-api/src/main/yang/elan.yang b/elanmanager/elanmanager-api/src/main/yang/elan.yang index 5b4b1055..5ec20678 100644 --- a/elanmanager/elanmanager-api/src/main/yang/elan.yang +++ b/elanmanager/elanmanager-api/src/main/yang/elan.yang @@ -6,7 +6,10 @@ module elan { import ietf-interfaces { prefix if; } - + import ietf-inet-types { + prefix inet; + revision-date "2010-09-24"; + } import ietf-yang-types { prefix yang; } @@ -16,47 +19,52 @@ module elan { description "elan module"; } - /* - * elan instance view. - */ - container elan-instances { - description - "elan instances configuration parameters. - elan instances support both the VLAN and VNI based elans."; - - list elan-instance { - max-elements "unbounded"; - min-elements "0"; - key "elan-instance-name"; + /* + * elan instance view. + */ + container elan-instances { description - "Specifies the name of the elan instance. It is a string of 1 to 31 - case-sensitive characters."; - leaf elan-instance-name { - type string; + "elan instances configuration parameters. Elan instances support both the VLAN and VNI based elans."; + + list elan-instance { + max-elements "unbounded"; + min-elements "0"; + key "elan-instance-name"; description - "The name of the elan-instance."; - } - leaf elan-tag { - type uint32; - description "ELAN unique identifier which is unique across all the tenants. This will be created internally and if provided, the value will be discarded."; - } - leaf mac-timeout { - type uint32 { - range "0..65535"; + "Specifies the name of the elan instance. It is a string of 1 to 31 + case-sensitive characters."; + leaf elan-instance-name { + type string; + description "The name of the elan-instance."; } - description "MAC Table entry ageing time in seconds. A value of 0 will indicate that the MAC will never expire."; - } - leaf description { - description - "A textual description of elan instance, the elan instance description - helps users memorize the elan instance."; + leaf elan-tag { + type uint32; + description "ELAN unique identifier which is unique across all the tenants. + This will be created internally and if provided, the value will be discarded."; + } + leaf vni { + type uint32; + description "Optional. Network identifier. It's mandatory when there are external devices + participating in the ELAN"; + } + leaf mac-timeout { + type uint32 { + range "0..65535"; + } + description "MAC Table entry ageing time in seconds. + A value of 0 will indicate that the MAC will never expire."; + } + leaf description { + description + "A textual description of elan instance, the elan instance description + helps users memorize the elan instance."; - type string { - length "1..254"; + type string { + length "1..254"; + } } } } - } /* * Binding Interfaces to a elan Instance.