eBGP btw Contrail and MX (Hidden reason: MPLS not enabled on interface) - ganeshahv/Contrail_SRE GitHub Wiki
Problem
In a eBGP session, routes from Contrail are hidden on the MX
10.219.131.82:1:10.10.100.4/32 (1 entry, 0 announced)
         BGP
                Route Distinguisher: 10.219.131.82:1
                Next hop type: Fictitious, Next hop index: 0
                Address: 0x54935b0
                Next-hop reference count: 14
                Next hop: 10.219.131.82
                State: <Hidden Ext ProtectionPath ProtectionCand>
                Local AS: 64513 Peer AS: 64512
                Age: 47:12
                Validation State: unverified
                Task: BGP_64512.10.219.130.137
                AS path: 64512 ?
                Communities: target:64512:10 target:64512:8000001 encapsulation:unknown(0x2) encapsulation:mpls-in-udp(0xd) mac-mobility:0x1:sticky (sequence 1) unknown type 8004 value fc00:7a1201 unknown type 8071 value fc00:4
                VPN Label: 20
                Router ID: 10.219.130.137
                Hidden reason: MPLS not enabled on interface
Reason
As seen in the o/p the route is hidden as MPLS is not enabled on the interface towards the computes. For eBGP to work, this is required.
Solution
set protocols mpls interface all
set interfaces xe-0/0/0 unit 0 family mpls
Solved
10.219.131.82:1:10.10.100.4/32 (1 entry, 0 announced)
        *BGP    Preference: 170/-101
                Route Distinguisher: 10.219.131.82:1
                Next hop type: Router, Next hop index: 0
                Address: 0x5491ed0
                Next-hop reference count: 5
                Source: 10.219.130.137
                Next hop: 10.219.131.82 via xe-0/0/0.0, selected
                Label operation: Push 20
                Label TTL action: prop-ttl
                Load balance label: Label 20: None;
                Label element ptr: 0x5491b00
                Label parent element ptr: 0x0
                Label element references: 1
                Label element child references: 0
                Label element lsp id: 0
                Session Id: 0x0
                State: <Active Ext ProtectionPath ProtectionCand>
                Local AS: 64513 Peer AS: 64512
                Age: 11:07      Metric: 100
                Validation State: unverified
                Task: BGP_64512.10.219.130.137
                AS path: 64512 ?
                Communities: target:64512:10 target:64512:8000001 encapsulation:unknown(0x2) encapsulation:mpls-in-udp(0xd) mac-mobility:0x1:sticky (sequence 1) unknown type 8004 value fc00:7a1201 unknown type 8071 value fc00:4
                Accepted
                VPN Label: 20
                Localpref: 100
                Router ID: 10.219.130.137