commit | 8e576256fb5b457879ab3d9c9276ff4034ff7152 | [log] [tgz] |
---|---|---|
author | Bob Lantz <rlantz@cs.stanford.edu> | Mon Aug 29 14:05:59 2016 -0700 |
committer | Bob Lantz <lantz@onlab.us> | Mon Aug 29 17:56:11 2016 -0700 |
tree | 9b68a65497e6cdc911222b58d8eaa3cbeab915d4 | |
parent | 5763516eb67f94b0e00facd1937273071c7b6114 [diff] |
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
ONOS is a new SDN network operating system designed for high availability, performance, scale-out.