Page 1 of 1

Chaining Config Push / Variable

Posted: Tue Mar 29, 2022 6:52 am
by Arnaud.Moritz
Hello to all,

First of all, thank you for your work.
Unless I'm mistaken, I haven't found a way to chain the "Config Push" or to specify a variable for a specific equipment in the same preset.

Example:

Code: Select all

interface ${uplink@device1}
!
interface ${uplink@device2}
I think it can be very useful.

Re: Chaining Config Push / Variable

Posted: Thu Mar 31, 2022 4:24 pm
by Vik@Unimus
Hello,

If I understand correctly, you are referring to accessing a different device's variable or substituting a value or a part of a value of one variable with another

Code: Select all

# this is NOT possible
var1=value
var2=some_other_${var1}
If that's the case, unfortunately, this is not possible at all as these are per-device variables, which means this is aimed to give us more flexibility with MCP presets and enabling us creating more universal presets where we can substitute key per-device unique values using variables and have a freedom to keep the rest of the commands non-specific, hence reusing it for multiple devices at once.

Let me know if I understood your idea incorrectly. In such case, give us a bit more detail as well, please.