More changes all around regression test logic related to the
vap profile. Move some open-coded admin_up/admin_down calls
to base class.
regression test takes the .rc file as primary input,
and cmd-line args will override that.
Signed-off-by: Ben Greear <greearb@candelatech.com>
And remove the logic to create a bridge within the vap profile,
the vap profile does not have enough info to properly create
a bridge (old code used hard-coded port names)
Instead, logic would be to create vap, and then create a bridge
object that holds the VAP using the bridge profile/script.
Signed-off-by: Ben Greear <greearb@candelatech.com>
- Import importlib, os, and sys to each python script.
- Append "lanforge-scripts" root directory to the system path, allowing each script to be called from an antecedent directory. e.g.
if 'lanforge-scripts' not in sys.path:
sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../../../")))
- All statements of the form 'from <module> import <class>' replace with:
<module> = importlib.import_module("lanforge-scripts.<directory>.<module>")
<class> = <module>.<class>