Tuesday, June 8, 2021

Netmiko not sending second send_config_set commands

I'm still pretty new to Netmiko and am running in to an issue trying to configure a helper address on SVIs. I have a list of their names, ie interfaces = ('Vlan10', 'Vlan20', etc...) and am trying the following to send the helper-address to the device:

for svi in interfaces: output = net_connect.send_config_set(f'interface {svi}', 'ip helper-address 10.1.1.20') print(output) 

The output that I get shows it entering the SVI config mode, but it doesn't implement the helper address. I've manually confirmed that the helper-address isn't in place and it's not just the output variable not recording it.

configure terminal Enter configuration commands, one per line. End with CNTL/Z. switchname(config)#interface Vlan10 switchname(config-if)#end switchname# 

Any ideas why it's skipping over that second command in send_config_set?



No comments:

Post a Comment