extension Statement
see example from Lines 5-9 on stores model with extension
Code Block |
---|
|
extension <keyword/identifier>{
<extension substatements...>
} |
see example from Line 15 on extended-stores model
Code Block |
---|
|
<module prefix>:<extension keyword> "argument"; |
- to be used to define new statements
- available to be imported and used by other modules just like a normal YANG statement
- by use of 'import statement' to import the module where the extension is defined
- statements that do not have any substatements can have extensions defined if wanted
- its only one argument is the identifier and keyword for the extension
- Optional substatements:
- argument Statement
- description Statement
- reference Statement
- defined extension Statements