In the environment I'm manging the management IP could be an SVI or Phy port, I'd rather not have to specify the interface manually as it differs for many devices.
Is it possible to use Unimus to create dynamic config based on the source port that the management IP sits on.
Similar to how Ansible gather facts can be used to collect L3 information, then pull interface name from that.
I''ve had a look at use of var as described on the wiki but there are few working examples and seemingly the only logic that can be applied is a regex search. But I do not see how I can combine all this in one bulkpush.
Perhaps something like...
Code: Select all
show ip int brief | include {device_ip}
//Output
Vlan29 a.b.c.d YES NVRAM up up
!! But then how to say first block of chars = {src_int}
no logging event link-status boot
logging event link-status default
logging trap debugging
logging source-interface {src_int}
logging host w.x.y.z