public final class JuniperUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
JuniperUtils.LinkAbstraction
Device representation of the adjacency at the IP Layer.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
FAILED_CFG |
static String |
REQ_IF_INFO |
static String |
REQ_LLDP_NBR_INFO |
static String |
REQ_MAC_ADD_INFO |
static String |
REQ_SYS_INFO |
| Modifier and Type | Method and Description |
|---|---|
static void |
createBiDirLinkDescription(org.onosproject.net.DeviceId localDevId,
org.onosproject.net.Port localPort,
org.onosproject.net.DeviceId remoteDevId,
org.onosproject.net.Port remotePort,
Set<org.onosproject.net.link.LinkDescription> descs)
Create two LinkDescriptions corresponding to the bidirectional links.
|
static org.onosproject.net.device.DeviceDescription |
parseJuniperDescription(org.onosproject.net.DeviceId deviceId,
org.apache.commons.configuration.HierarchicalConfiguration sysInfoCfg,
String chassisText)
Parses device configuration and returns the device description.
|
static Set<JuniperUtils.LinkAbstraction> |
parseJuniperLldp(org.apache.commons.configuration.HierarchicalConfiguration info)
Parses neighbours discovery information and returns a list of
link abstractions.
|
static List<org.onosproject.net.device.PortDescription> |
parseJuniperPorts(org.apache.commons.configuration.HierarchicalConfiguration cfg)
Parses device ports configuration and returns a list of
port description.
|
static String |
requestBuilder(String request)
Helper method to build a XML schema given a request.
|
public static final String FAILED_CFG
public static final String REQ_LLDP_NBR_INFO
public static final String REQ_SYS_INFO
public static final String REQ_MAC_ADD_INFO
public static final String REQ_IF_INFO
public static String requestBuilder(String request)
request - a tag element of the XML schemapublic static org.onosproject.net.device.DeviceDescription parseJuniperDescription(org.onosproject.net.DeviceId deviceId,
org.apache.commons.configuration.HierarchicalConfiguration sysInfoCfg,
String chassisText)
deviceId - the id of the devicesysInfoCfg - system configurationchassisText - chassis stringpublic static List<org.onosproject.net.device.PortDescription> parseJuniperPorts(org.apache.commons.configuration.HierarchicalConfiguration cfg)
cfg - interface configurationpublic static void createBiDirLinkDescription(org.onosproject.net.DeviceId localDevId,
org.onosproject.net.Port localPort,
org.onosproject.net.DeviceId remoteDevId,
org.onosproject.net.Port remotePort,
Set<org.onosproject.net.link.LinkDescription> descs)
localDevId - the identity of the local devicelocalPort - the port of the local deviceremoteDevId - the identity of the remote deviceremotePort - the port of the remote devicedescs - the collection to which the link descriptions
should be addedpublic static Set<JuniperUtils.LinkAbstraction> parseJuniperLldp(org.apache.commons.configuration.HierarchicalConfiguration info)
info - interface configuration