prefix neutron-l2gateways;
import ietf-yang-types { prefix "yang"; }
- import ietf-inet-types { prefix "inet"; revision-date 2010-09-24; }
import neutron-attrs { prefix "attrs"; }
organization "OpenDaylight Neutron Group";
}
grouping l2gateway-connection-attributes {
- leaf l2gateway-id {
- type yang:uuid;
- }
- leaf network-id {
- type yang:uuid;
- }
- leaf segment-id {
- type int32;
- }
- leaf port-id {
- type yang:uuid;
- }
- }
+ leaf l2gateway-id {
+ type yang:uuid;
+ }
+ leaf network-id {
+ type yang:uuid;
+ }
+ leaf segment-id {
+ type int32;
+ }
+ leaf port-id {
+ type yang:uuid;
+ }
+ }
grouping l2gateway-attributes {
- leaf l2gateway-name{
+ leaf l2gateway-name {
type string;
}
list devices {
description "Description of devices.";
- leaf device-name{
+ key "uuid";
+ leaf uuid {
+ type yang:uuid;
+ }
+ leaf device-name {
type string;
}
list interfaces {
- description "Description of interfaces";
- leaf interface-name {
- type string;
- }
- leaf-list segmentation-ids {
- description "Description of segmentations";
- type int32;
- }
+ description "Description of interfaces";
+ key interface-name;
+ leaf interface-name {
+ type string;
+ }
+ leaf-list segmentation-ids {
+ description "Description of segmentations";
+ type int32;
+ }
}
}
}