apps/bgp-api/src/main/java/org/onosproject/bgp/bgpio/types/attr/BgpAttrNodeIsIsAreaId.java
/**
     * Reads the IS-IS Area Identifier.
     *
     * @param cb ChannelBuffer
     * @return object of BgpAttrNodeIsIsAreaId
     * @throws BgpParseException while parsing BgpAttrNodeIsIsAreaId
     */
Reads the IS-IS Area Identifier.
Reads the IS - IS Area Identifier .
public static BgpAttrNodeIsIsAreaId read(ChannelBuffer cb)
            throws BgpParseException {
        byte[] isisAreaId;
        short lsAttrLength = cb.readShort();
        if (cb.readableBytes() < lsAttrLength) {
            Validation.validateLen(BgpErrorType.UPDATE_MESSAGE_ERROR,
                                   BgpErrorType.ATTRIBUTE_LENGTH_ERROR,
                                   lsAttrLength);
        }
        isisAreaId = new byte[lsAttrLength];
        cb.readBytes(isisAreaId);
        return BgpAttrNodeIsIsAreaId.of(isisAreaId);
    }
public static BgpAttrNodeIsIsAreaId read ( ChannelBuffer cb ) throws BgpParseException { byte [ ] isisAreaId ; short lsAttrLength = cb . readShort ( ) ; if ( cb . readableBytes ( ) < lsAttrLength ) { Validation . validateLen ( BgpErrorType . UPDATE_MESSAGE_ERROR , BgpErrorType . ATTRIBUTE_LENGTH_ERROR , lsAttrLength ) ; } isisAreaId = new byte [ lsAttrLength ] ; cb . readBytes ( isisAreaId ) ; return BgpAttrNodeIsIsAreaId . of ( isisAreaId ) ; }
Reads the IS-IS Area Identifier.
Reads the IS - IS Area Identifier .