I am writing a YANG module where I want to include a container from another module i.e. I want to define a NEW container in the module that I am writing that references a container from another module. Example of failed attempt:
module newmodule {
yang-version 1.1;
namespace "urn:nist:params:xml:ns:yang:newmodule";
prefix newmodule;
import ietf-access-control-list {
prefix "acl";
}
container newprofile {
uses acl:access-lists;
}
}
I have only included the essential parts above. Here acl:access-lists is a container.
Is it possible to compose containers like this? I've tried successfully to build containers from groupings. However, in this case I have no control over the contents of ietf-access-control-list.
augment
statement. It allows injection of your schema nodes into an existing schema node hierarchy, which is what that container you tried referencing in the example is. – predi