Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge feature_branch to devel #77

Merged
merged 7 commits into from
May 17, 2018
Merged

merge feature_branch to devel #77

merged 7 commits into from
May 17, 2018

Conversation

trishnaguha
Copy link
Member

No description provided.

Peter Sprygada and others added 7 commits May 17, 2018 15:33
This change allows conditionals to be applied to sub keys when
templating json data structures. The conditional can be applied using
the `when:` directive
* interface_split - will split an interface and return its parts

`{{ 'Ethernet1' | interface_split }}` returns `['Ethernet1',
'Ethernet2']`
`{{ 'Ethernet1' | interface_split('name') }}` returns `Ethernet`
`{{ 'Ethernet1' | interface_split('index') }}` returns `1`

* interface_range - will expand an interface range

`{{ 'Ethernet1-3' | interface_range }}` returns `['Ethernet1',
'Ethernet2', 'Ethernet3']`
`{{ 'Ethernet1,3-4,5' | interface_range }}` returns `['Ethernet1',
'Ethernet3', 'Ethernet4', 'Ethernet5']`
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
The network_template lookup plugin will load and generate a device
configuration based on a set of directives defined in the network_config
file.
@trishnaguha trishnaguha merged commit e00f080 into devel May 17, 2018
trishnaguha pushed a commit to trishnaguha/network-engine that referenced this pull request Feb 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant