Search in sources :

Example 1 with SimpleFabricService

use of org.onosproject.simplefabric.api.SimpleFabricService in project onos by opennetworkinglab.

the class SimpleFabricCommand method doExecute.

@Override
protected void doExecute() {
    SimpleFabricService simpleFabric = get(SimpleFabricService.class);
    if (command == null) {
        print("command not found", command);
        return;
    }
    switch(command) {
        case "show":
            simpleFabric.dumpToStream("show", System.out);
            break;
        case "intents":
            simpleFabric.dumpToStream("intents", System.out);
            break;
        case "reactive-intents":
            simpleFabric.dumpToStream("reactive-intents", System.out);
            break;
        case "refresh":
            simpleFabric.triggerRefresh();
            System.out.println("simple fabric refresh triggered");
            break;
        case "flush":
            simpleFabric.triggerFlush();
            System.out.println("simple fabric flush triggered");
            break;
        default:
            System.out.println("unknown command: " + command);
            break;
    }
}
Also used : SimpleFabricService(org.onosproject.simplefabric.api.SimpleFabricService)

Aggregations

SimpleFabricService (org.onosproject.simplefabric.api.SimpleFabricService)1