X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=neutronvpn%2Fapi%2Fsrc%2Fmain%2Fyang%2Fneutronvpn.yang;h=76c55e0d5ef39309d6602ac690182c156b5df08d;hb=b5deca298046f743e05aa385f14705a1e13afc37;hp=125dfd9f988deb8b3b5d9107ab266c7bc18b3abc;hpb=ac3fdc26e97f26b20a4657e122a97a928a814f10;p=netvirt.git diff --git a/neutronvpn/api/src/main/yang/neutronvpn.yang b/neutronvpn/api/src/main/yang/neutronvpn.yang index 125dfd9f98..76c55e0d5e 100644 --- a/neutronvpn/api/src/main/yang/neutronvpn.yang +++ b/neutronvpn/api/src/main/yang/neutronvpn.yang @@ -125,9 +125,12 @@ module neutronvpn { Format is ASN:nn or IP-address:nn."; } - leaf router-id { - type yang:uuid; - description "UUID of router "; + list router-ids { + key "router-id"; + leaf router-id { + type yang:uuid; + description "UUID of router "; + } } leaf-list network-ids { @@ -178,9 +181,12 @@ module neutronvpn { description "The UUID of the tenant that will own the subnet."; } - leaf router-id { - type yang:uuid; - description "UUID of router "; + list router-ids { + key "router-id"; + leaf router-id { + type yang:uuid; + description "UUID of router "; + } } leaf-list network_ids { type yang:uuid; @@ -306,10 +312,13 @@ module neutronvpn { mandatory "true"; description "vpn-id"; } - leaf router-id { - type yang:uuid; - mandatory "true"; - description "vpn-id"; + list router-ids { + key "router-id"; + min-elements "1"; + description "list of router-ids to be associated with the vpn"; + leaf router-id { + type yang:uuid; + } } } } @@ -322,10 +331,13 @@ module neutronvpn { mandatory "true"; description "vpn-id"; } - leaf router-id { - type yang:uuid; - mandatory "true"; - description "router-id"; + list router-ids { + key "router-id"; + min-elements "1"; + description "list of router-ids to be dissociated from the vpn"; + leaf router-id { + type yang:uuid; + } } } }