clicon / clixon-controller

Clixon network controller
Apache License 2.0
13 stars 4 forks source link

device groups #1

Closed olofhagsand closed 7 months ago

olofhagsand commented 1 year ago

Implement device-group functionality. Device-groups includes devices and/or other device-groups and cna be used as first-class objects in all operations applicable to devices. clixon-controller.yang has a device-group definitions, but not implemented:

        list device-group{
            description "Groups of devices, NOTE: device-name/-group unclear semantics?";
            key name;
            leaf name{
                type string;
            }
            leaf-list device-name {
                description "Device within group";
                type leafref {
                    require-instance false;
                    path "/devices/device/name";
                }
            }
            leaf-list device-group {
                description
                   "A list of device groups contained in this device group.
                    Recursive definitions are not valid.";
                type leafref {
                  path "/devices/device-group/name";
                }
            }