public final class BgpPrefixAttrIgpFlags extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static int |
ATTR_PREFIX_FLAG_LEN |
static int |
ATTR_PREFIX_FLAGBIT |
static byte |
FIRST_BIT |
static byte |
FOURTH_BIT |
protected static org.slf4j.Logger |
log |
static byte |
SECOND_BIT |
static byte |
THIRD_BIT |
| Constructor and Description |
|---|
BgpPrefixAttrIgpFlags(boolean bisisUpDownBit,
boolean bOspfNoUnicastBit,
boolean bOspfLclAddrBit,
boolean bOspfNssaBit)
Constructor to initialize the value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
boolean |
isisUpDownBit()
Returns the IS-IS Up/Down Bit set or not.
|
static BgpPrefixAttrIgpFlags |
of(boolean bisisUpDownBit,
boolean bOspfNoUnicastBit,
boolean bOspfLclAddrBit,
boolean bOspfNssaBit)
Returns object of this class with specified values.
|
boolean |
ospfLclAddrBit()
Returns the OSPF local address Bit set or not.
|
boolean |
ospfNoUnicastBit()
Returns the OSPF no unicast Bit set or not.
|
boolean |
ospfNssaBit()
Returns the OSPF propagate NSSA Bit set or not.
|
static BgpPrefixAttrIgpFlags |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the IGP Flags.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
protected static final org.slf4j.Logger log
public static final int ATTR_PREFIX_FLAGBIT
public static final int ATTR_PREFIX_FLAG_LEN
public static final byte FIRST_BIT
public static final byte SECOND_BIT
public static final byte THIRD_BIT
public static final byte FOURTH_BIT
public BgpPrefixAttrIgpFlags(boolean bisisUpDownBit,
boolean bOspfNoUnicastBit,
boolean bOspfLclAddrBit,
boolean bOspfNssaBit)
bisisUpDownBit - IS-IS Up/Down BitbOspfNoUnicastBit - OSPF no unicast BitbOspfLclAddrBit - OSPF local address BitbOspfNssaBit - OSPF propagate NSSA Bitpublic static BgpPrefixAttrIgpFlags of(boolean bisisUpDownBit, boolean bOspfNoUnicastBit, boolean bOspfLclAddrBit, boolean bOspfNssaBit)
bisisUpDownBit - IS-IS Up/Down BitbOspfNoUnicastBit - OSPF no unicast BitbOspfLclAddrBit - OSPF local address BitbOspfNssaBit - OSPF propagate NSSA Bitpublic static BgpPrefixAttrIgpFlags read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - ChannelBufferBgpParseException - while parsing BgpPrefixAttrIGPFlagspublic boolean isisUpDownBit()
public boolean ospfNoUnicastBit()
public boolean ospfLclAddrBit()
public boolean ospfNssaBit()
public short getType()
BgpValueTypegetType in interface BgpValueTypepublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object