Skip to content

Help Enhancing EOS_Designs output #1002

Closed Locked Answered by ClausHolbechArista
ryanmerolle asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Ryan
I believe your example does not work, because there is no variable ethernet_interfaces at the time of the rendering. During rendering we place the structured configuration into a tmp variable called structured_config so it should be structured_config.ethernet_interfaces, but I tried testing with that, and it seems like the rendering of the inline template happens before it is passed to our code, so even structured_config is not available.
It could work from the leaf standpoint by iterating over the topology.links facts which are set in a previous stage.
Also note that you don't have to do the combine. We take care of that in the custom_structured_configuration code.

custom_structu…

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
4 replies
@ryanmerolle
Comment options

@carlbuchmann
Comment options

@ryanmerolle
Comment options

@carlbuchmann
Comment options

Comment options

You must be logged in to vote
8 replies
@ClausHolbechArista
Comment options

@ryanmerolle
Comment options

@ryanmerolle
Comment options

@ClausHolbechArista
Comment options

@ryanmerolle
Comment options

Answer selected by ryanmerolle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants