alshabib | fd23d31 | 2014-11-11 18:14:47 -0800 | [diff] [blame] | 1 | package org.onlab.onos.demo; |
| 2 | |
alshabib | 486349d | 2014-11-25 18:09:25 -0500 | [diff] [blame^] | 3 | import com.fasterxml.jackson.databind.JsonNode; |
| 4 | |
| 5 | import java.util.Optional; |
| 6 | |
alshabib | fd23d31 | 2014-11-11 18:14:47 -0800 | [diff] [blame] | 7 | /** |
| 8 | * Simple demo api interface. |
| 9 | */ |
| 10 | public interface DemoAPI { |
| 11 | |
| 12 | enum InstallType { MESH, RANDOM }; |
| 13 | |
| 14 | /** |
| 15 | * Installs intents based on the installation type. |
| 16 | * @param type the installation type. |
| 17 | */ |
alshabib | 486349d | 2014-11-25 18:09:25 -0500 | [diff] [blame^] | 18 | void setup(InstallType type, Optional<JsonNode> runParams); |
alshabib | fd23d31 | 2014-11-11 18:14:47 -0800 | [diff] [blame] | 19 | |
| 20 | /** |
| 21 | * Uninstalls all existing intents. |
| 22 | */ |
| 23 | void tearDown(); |
| 24 | |
| 25 | } |