Make sure IVS is installed
( cls )
| 1352 | |
| 1353 | @classmethod |
| 1354 | def setup( cls ): |
| 1355 | "Make sure IVS is installed" |
| 1356 | pathCheck( 'ivs-ctl', 'ivs', |
| 1357 | moduleName="Indigo Virtual Switch (projectfloodlight.org)" ) |
| 1358 | out, err, exitcode = errRun( 'ivs-ctl show' ) |
| 1359 | if exitcode: |
| 1360 | error( out + err + |
| 1361 | 'ivs-ctl exited with code %d\n' % exitcode + |
| 1362 | '*** The openvswitch kernel module might ' |
| 1363 | 'not be loaded. Try modprobe openvswitch.\n' ) |
| 1364 | exit( 1 ) |
| 1365 | |
| 1366 | @classmethod |
| 1367 | def batchShutdown( cls, switches ): |