DM should configured MX based on bgp-router AS config

Bug #1549614 reported by amit surana
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
Medium
Suresh Balineni
R3.1
Fix Committed
Medium
Suresh Balineni
Trunk
Fix Committed
Medium
Suresh Balineni

Bug Description

3.0 supports configuration of bgp-router ASN. Refer:

https://bugs.launchpad.net/juniperopenstack/+bug/1408429

If bgp-router ASN is configured then it should be used for BGP peering. The BGP peering could be external or internal based on the ASN configured for the MX bgp-router.

Example config for both eBGP and iBGP case are shown below:

eBGP:

CN:
  ASN: 64512
  bgp-asn: 5000
MX-1
  ASN: 5001
MX-2
  ASN: 5001

autonomous-system 5001;

group __contrail__ {
    type internal;
    multihop;
    local-address 172.16.184.200;
    hold-time 90;
    keep all;
    family inet-vpn {
        unicast;
    }
    family inet6-vpn {
        unicast;
    }
    family evpn {
        signaling;
    }
    family route-target;
    neighbor 172.16.187.200 {
        peer-as 5001;
    }
}
group __contrail_external__ {
    type external;
    multihop;
    local-address 172.16.184.200;
    hold-time 90;
    keep all;
    family inet-vpn {
        unicast;
    }
    family inet6-vpn {
        unicast;
    }
    family evpn {
        signaling;
    }
    family route-target;
    neighbor 172.16.180.8 {
        peer-as 5000;
    }
    neighbor 172.16.180.5 {
        peer-as 5000;
    }
    neighbor 172.16.180.7 {
        peer-as 5000;
    }
}

iBGP:

CN:
  ASN: 64512
  bgp-asn: 5001
MX-1
 ASN: 5001
MX-2
 ASN: 5001

autonomous-system 5001;

group __contrail__ {
    type internal;
    multihop;
    local-address 172.16.184.200;
    hold-time 90;
    keep all;
    family inet-vpn {
        unicast;
    }
    family inet6-vpn {
        unicast;
    }
    family evpn {
        signaling;
    }
    family route-target;
    neighbor 172.16.187.200 {
        peer-as 5001;
    }
    neighbor 172.16.180.5 {
        peer-as 5001;
    }
    neighbor 172.16.180.7 {
        peer-as 5001;
    }
    neighbor 172.16.180.8 {
        peer-as 5001;
    }
}
group __contrail_external__ {
    type external;
    multihop;
    local-address 172.16.184.200;
    hold-time 90;
    keep all;
    family inet-vpn {
        unicast;
    }
    family inet6-vpn {
        unicast;
    }
    family evpn {
        signaling;
    }
    family route-target;
}

amit surana (asurana-t)
tags: removed: blocker
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/21356
Submitter: Suresh Balineni (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/21913
Submitter: Suresh Balineni (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/21356
Committed: http://github.org/Juniper/contrail-controller/commit/f0fabb591f5e0834f0fec31c9dcaaaf78ae4a41a
Submitter: Zuul
Branch: master

commit f0fabb591f5e0834f0fec31c9dcaaaf78ae4a41a
Author: sbalineni <email address hidden>
Date: Wed Jun 22 11:56:35 2016 -0700

[DM]: Configure local-as value if global asn is different

When mx bgp router is conifgured with 'local-autonomous-system',
DM should generate local-as conifguraion as follows.

protocols {
bgp {
group __contrail_external__ {
type internal;
neighbor 10.84.7.31 {
peer-as 1000;
}
}

More details in the bug.

Change-Id: If2cfb53095a6af64fa7f05e1d98c07beed7f6d0c
Closes-Bug: #1549614
Closes-Bug: #1451972

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/21913
Committed: http://github.org/Juniper/contrail-controller/commit/7571c0fe56a34b0eae7ed0ca3c7a7fb1917a52ac
Submitter: Zuul
Branch: R3.0

commit 7571c0fe56a34b0eae7ed0ca3c7a7fb1917a52ac
Author: sbalineni <email address hidden>
Date: Wed Jun 22 11:56:35 2016 -0700

[DM]: Configure local-as value if global asn is different

When mx bgp router is conifgured with 'local-autonomous-system',
DM should generate local-as conifguraion as follows.

protocols {
bgp {
group __contrail_external__ {
type internal;
neighbor 10.84.7.31 {
peer-as 1000;
}
}

More details in the bug.

Change-Id: If2cfb53095a6af64fa7f05e1d98c07beed7f6d0c
Closes-Bug: #1549614
Closes-Bug: #1451972

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/22296
Submitter: Suresh Balineni (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/22296
Committed: http://github.org/Juniper/contrail-controller/commit/72b715b777f50a96cffd5ab7970e9a5767725e07
Submitter: Zuul
Branch: R3.1

commit 72b715b777f50a96cffd5ab7970e9a5767725e07
Author: sbalineni <email address hidden>
Date: Wed Jun 22 11:56:35 2016 -0700

[DM]: Configure local-as value if global asn is different

When mx bgp router is conifgured with 'local-autonomous-system',
DM should generate local-as conifguraion as follows.

protocols {
bgp {
group __contrail_external__ {
type internal;
neighbor 10.84.7.31 {
peer-as 1000;
}
}

More details in the bug.

Change-Id: If2cfb53095a6af64fa7f05e1d98c07beed7f6d0c
Closes-Bug: #1549614
Closes-Bug: #1451972

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.