for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
# encoding: utf-8
"""
srigpprefixattr.py
Created by Evelio Vila
Copyright (c) 2014-2017 Exa Networks. All rights reserved.
import json
from exabgp.bgp.message.update.attribute.bgpls.linkstate import LINKSTATE
from exabgp.bgp.message.update.attribute.bgpls.linkstate import LsGenericFlags
# draft-gredler-idr-bgp-ls-segment-routing-ext-03
# 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
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
# | Type | Length |
# // Flags (variable) //
# RFC 7794 IPv4/IPv6 Extended Reachability Attribute Flags
@LINKSTATE.register()
class SrIgpPrefixAttr(LsGenericFlags):
REPR = 'Prefix Attr Flags'
JSON = 'sr-prefix-attribute-flags'
TLV = 1170
FLAGS = ['X', 'R', 'N', 'RSV', 'RSV', 'RSV', 'RSV', 'RSV']
# MISSING LEN