blob: e7f70726dd1de3b42e758feedd299e1a69b82ad3 [file] [log] [blame]
Aaron Kruglikov12faf8d2016-01-04 16:24:07 -08001package org.onosproject.net.behaviour;
2
3import 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.
12public 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}