Inheritance & overrides¶
Network and Ssh Configuration (see Namespace attributes) are inherited by all of a namespace’s children, at which point they may be overidden to customise the attributes at that namespace level.
For example:
---
"estate":
type: collection
description: My Estate
network:
foo: value
bar: other value
"parent:child":
type: inventory
description My Inventory
The ‘child’ element’s network attributes looks as follows:
--
network:
foo: value
bar: other value
Then consider:
---
"estate":
type: collection
description: My Estate
network:
foo: value
bar: other value
"parent:child":
type: inventory
description My Inventory
network:
bar: overriden value
The child element’s network Element has been partially overriden resulting in the following:
--
network:
foo: value
bar: overriden value