Committed by
Bob Lantz
Enable --custom files to import ONOSCLI
Since --custom files are execed, subsequently importing them actually creates duplicate classes. This wouldn't be a problem except that we depend on isinstance(). As a workaround, we allow the class name to match if isinstance() fails, assuming it will be a class that is compatible with ONOSCluster or ONOSNode. Example: env PYTHONPATH=. mn --custom onos.py,mytest.py where mytest.py imports onos Change-Id: Ib4cda82fbdd612420de1e113ab768e2f137d5213
Showing
1 changed file
with
25 additions
and
6 deletions
-
Please register or login to post a comment