your
Also note that you have missing closing brackets on following line:
router. __init__()
method expects 9 aruments, of which first positional argument is self. When you instantiate object of class router you need to pass 8 arguments. You pass 7, thus it complains that last one - voicelan
is missing:addvlan = router('cisco_ios', result['hostname'], result['username'], result['password'], result['port'], result['number'], result['vlanname'])I guess you are actually missing
datavlan
param - result['datavlan'], like you do in other places like addinterface
Also note that you have missing closing brackets on following line:
addinterface = router('cisco_ios', result['hostname'], result['username'], result['password'], result['port'], result['interface'], result['datavlan'], result['voi$
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs