public class IncludeRouteObject extends PCEPObject
From RFC 5440 Section 7.12. Include Route Object
The IRO (Include Route Object) is optional and can be used to specify that the computed path MUST traverse a set of specified network elements. The IRO MAY be carried within PCReq and PCRep messages. When carried within a PCRep message with the NO-PATH object, the IRO indicates the set of elements that cause the PCE to fail to find a path. IRO Object-Class is 10. IRO Object-Type is 1. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | // (Sub-objects) // | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Figure 17: IRO Body Format Sub-objects: The IRO is made of sub-objects identical to the ones defined in [RFC3209], [RFC3473], and [RFC3477], where the IRO sub- object type is identical to the sub-object type defined in the related documents. The following sub-object types are supported. Type Sub-object 1 IPv4 prefix 2 IPv6 prefix 4 Unnumbered Interface ID 32 Autonomous system number The L bit of such sub-object has no meaning within an IRO.Ibit, log, object_bytes, ObjectClass, ObjectLength, OT, Pbit, Res
Constructor and Description |
---|
IncludeRouteObject() |
IncludeRouteObject(byte[] bytes,
int offset)
Constructs a new IRO (Include Route Object) from a sequence of bytes
|
Modifier and Type | Method and Description |
---|---|
void |
addEROSubobjectVector(Vector<EROSubobject> erosovec) |
void |
addIROSubobject(EROSubobject eroso) |
void |
decode()
Decodes Explicit Route Object
|
void |
encode()
Encode Explicit Route Object
|
boolean |
equals(Object obj) |
LinkedList<EROSubobject> |
getIROList() |
int |
hashCode() |
void |
setIROList(LinkedList<EROSubobject> iROList) |
decode, decodeHeader, encode_header, getBytes, getLength, getObject_bytes, getObjectClass, getObjectClass, getObjectLength, getObjectType, getOT, getRes, isIbit, isPbit, setIbit, setObject_bytes, setObjectClass, setObjectLength, setOT, setPbit, setRes, supportedObject
public IncludeRouteObject()
public IncludeRouteObject(byte[] bytes, int offset) throws MalformedPCEPObjectException
bytes
- Sequence of bytes where the object is presentoffset
- Position at which the object startsMalformedPCEPObjectException
- Thrown if the decoded object is not well formedpublic void encode()
encode
in interface PCEPElement
encode
in class PCEPObject
public void decode() throws MalformedPCEPObjectException
decode
in class PCEPObject
MalformedPCEPObjectException
public void addIROSubobject(EROSubobject eroso)
public void addEROSubobjectVector(Vector<EROSubobject> erosovec)
public LinkedList<EROSubobject> getIROList()
public void setIROList(LinkedList<EROSubobject> iROList)
public int hashCode()
hashCode
in class PCEPObject
public boolean equals(Object obj)
equals
in class PCEPObject
Copyright © 2016. All rights reserved.