napalm-automation / napalm-base

Apache License 2.0
32 stars 48 forks source link

DO NOT MERGE - Search MRO path for templates #293

Closed bewing closed 7 years ago

bewing commented 7 years ago

@mirceaulinic Does this break anything in salt?

mirceaulinic commented 7 years ago

As long as you can still do:

d = get_network_driver('X')
i = d(host, usr, pass)
i.load_template(...)

Nothing is affected.

bewing commented 7 years ago

There's a logic bug in here -- the helper uses the class passed to determine what load_configuration method to call. Need to rework this branch to just expand the searchpath inside the helper function