Aaron Kruglikov | 12faf8d | 2016-01-04 16:24:07 -0800 | [diff] [blame^] | 1 | package org.onosproject.net.behaviour; |
| 2 | |
| 3 | import org.onosproject.net.driver.HandlerBehaviour; |
| 4 | |
| 5 | /** |
| 6 | * Behaviour that gets the configuration of the specified type from the device. |
| 7 | * |
| 8 | * This is a temporary development tool for use until yang integration is complete. |
| 9 | * This is not a properly specified behavior. DO NOT USE AS AN EXAMPLE. |
| 10 | */ |
| 11 | //FIXME this should eventually be removed. |
| 12 | public interface ConfigGetter extends HandlerBehaviour { |
| 13 | |
| 14 | /** |
| 15 | * Returns the string representation of a device configuration, returns a |
| 16 | * failure string if the configuration cannot be retreived. |
| 17 | * @param type the type of configuration to get (i.e. running). |
| 18 | * @return string representation of the configuration or an error string. |
| 19 | */ |
| 20 | public String getConfiguration(String type); |
| 21 | } |