netmod-wg / yang-next

Feature requests for future versions of YANG
6 stars 0 forks source link

support external module requirements #47

Closed abierman closed 5 years ago

abierman commented 6 years ago

There is no way in YANG to express a module dependency besides the "import" statement. This does not support 2 common use-cases:

Possible solution could be a new statement

requires { // could have SEMVER info specifying acceptable versions }

In order to support placeholder modules and flexible dependency chains, virtual modules could be supported, similar to Yocto

module A { requires routing; ...

}

module ietf-routing { provides routing; ... }

tonydamage commented 6 years ago

@abierman: This is more how you are looking at issue:

mbj4668 commented 6 years ago

Isn't this solved with packages (#50)?

kwatsen commented 5 years ago

Andy: maybe this is more a YANG-library or a YANG-package issue.

Closed in Feb 6 Virtual Interim meeting.