summaryrefslogtreecommitdiffstats
path: root/tests/topotests/bgp_prefix_sid/peer1/exabgp.cfg
blob: a5108ff0daa398ab4f23066b21f7e9d64986423a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
neighbor 10.0.0.1 {
    router-id 10.0.0.101;
    local-address 10.0.0.101;
    local-as 2;
    peer-as 1;

    family {
        ipv4 nlri-mpls;
    }

    static {
        # ref: draft-ietf-idr-bgp-prefix-sid-27
        #
        # IANA temporarily assigned the following:
        # attribute code type (suggested value: 40) to
        # the BGP Prefix-SID attribute
        #
        #  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            |   RESERVED    |
        # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        # |            Flags              |       Label Index             |
        # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        # |          Label Index          |
        # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        # Figure.  Label-Index TLV (Prefix-SID type-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
        # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        # |     Type      |          Length               |    Flags      |
        # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        # |     Flags     |
        # +-+-+-+-+-+-+-+-+
        #
        # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        # |         SRGB 1 (6 octets)                                     |
        # |                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        # |                               |
        # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        #
        # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        # |         SRGB n (6 octets)                                     |
        # |                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        # |                               |
        # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<Paste>
        # Figure. Originator SRGB TLV (Prefix-SID type-3)

        # ExaBGP generic-attribute binary pattern:
        #   Attribute-type: 0x28 (40:BGP_PREFIX_SID)
        #   Attribute-flag: 0xc0 (Option, Transitive)
        #   Attribute-body: Label-Index TLV and Originator SRGB TLV
        #    Label-Index TLV: 0x01000700000000000001
        #      Type        (08bit): 0x01
        #      Length      (16bit): 0x0007
        #      RESERVED    (08bit): 0x00
        #      Flags       (16bit): 0x0000
        #      Label Index (32bit): 0x00000001
        #    Originator SRGB TLV: 0x03000800000c350000000a
        #      Type        (08bit): 0x03
        #      Length      (16bit): 0x0008 (nb-SRGB is 1)
        #      Flags       (16bit): 0x0000
        #      SRGB1       (48bit): 0x0c3500:0x00000a (800000-800010 is SRGB1)
        route 3.0.0.1/32 next-hop 10.0.0.101 label [800001] attribute [0x28 0xc0 0x0100070000000000000103000800000c350000000a];

        # ExaBGP generic-attribute binary pattern:
        #   Attribute-type: 0x28 (40:BGP_PREFIX_SID)
        #   Attribute-flag: 0xc0 (Option, Transitive)
        #   Attribute-body: Label-Index TLV and Originator SRGB TLV
        #    Label-Index TLV: 0x01000700000000000001
        #      Type        (08bit): 0x01
        #      Length      (16bit): 0x0007
        #      RESERVED    (08bit): 0x00
        #      Flags       (16bit): 0x0000
        #      Label Index (32bit): 0x00000002
        #    Originator SRGB TLV: 0x03000800000c350000000a
        #      Type        (08bit): 0x03
        #      Length      (16bit): 0x0008 (nb-SRGB is 1)
        #      Flags       (16bit): 0x0000
        #      SRGB1       (48bit): 0x0c3500:0x00000a (800000-800010 is SRGB1)
        route 3.0.0.2/32 next-hop 10.0.0.101 label [800002] attribute [0x28 0xc0 0x0100070000000000000203000800000c350000000a];

        # ExaBGP generic-attribute binary pattern:
        #   Attribute-type: 0x28 (40:BGP_PREFIX_SID)
        #   Attribute-flag: 0xc0 (Option, Transitive)
        #   Attribute-body: Label-Index TLV and Originator SRGB TLV
        #    Label-Index TLV: 0x01000700000000000001
        #      Type        (08bit): 0x01
        #      Length      (16bit): 0x0007
        #      RESERVED    (08bit): 0x00
        #      Flags       (16bit): 0x0000
        #      Label Index (32bit): 0x00000003
        #    Originator SRGB TLV: 0x03000800000c350000000a
        #      Type        (08bit): 0x03
        #      Length      (16bit): 0x0008 (nb-SRGB is 1)
        #      Flags       (16bit): 0x0000
        #      SRGB1       (48bit): 0x0c3500:0x00000a (800000-800010 is SRGB1)
        route 3.0.0.3/32 next-hop 10.0.0.101 label [800003] attribute [0x28 0xc0 0x0100070000000000000303000800000c350000000a];
    }
}