package-rebuilds/pkgs/libyang/libyang-3.7.8/tools/lint/examples/sm-extension.yang
Thomas Lamprecht 853454b646 libyang: check in 3.7.8 source
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-03-07 14:34:15 +01:00

40 lines
704 B
YANG

module sm-extension {
yang-version 1.1;
namespace "urn:sm-ext";
prefix "sm-ext";
import ietf-interfaces {
prefix if;
}
import sm-mod {
prefix sm-mod;
}
revision 2022-09-15 {
description
"initial";
reference
"";
}
list things {
key "name";
leaf name {
type leafref {
path "/if:interfaces/if:interface/if:name";
}
}
leaf attribute {
type uint32;
}
}
augment "/if:interfaces/if:interface" {
leaf thing-attribute {
type leafref {
path "/things/attribute";
}
}
}
}