Skip to content

Commit

Permalink
[DM]: Minor changes to bgp configuration
Browse files Browse the repository at this point in the history
- removed keep all stanga (not necessary)
- set multihop only for external bgp peers.

Change-Id: Id44c3f2658dcfe885077f817572040747f69447f
Closes-Bug: #1452482
  • Loading branch information
sbalineni committed Jul 29, 2016
1 parent 6dab508 commit 6f87fdb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -745,16 +745,15 @@ def _get_bgp_config_xml(self, external=False):
if external:
etree.SubElement(bgp_config, "name").text = "__contrail_external__"
etree.SubElement(bgp_config, "type").text = "external"
etree.SubElement(bgp_config, "multihop")
else:
etree.SubElement(bgp_config, "name").text = "__contrail__"
etree.SubElement(bgp_config, "type").text = "internal"
etree.SubElement(bgp_config, "multihop")
local_address = etree.SubElement(bgp_config, "local-address")
local_address.text = self.bgp_params['address']
self._add_family_etree(bgp_config, self.bgp_params)
self.add_bgp_auth_config(bgp_config, self.bgp_params)
self.add_bgp_hold_time_config(bgp_config, self.bgp_params)
etree.SubElement(bgp_config, "keep").text = "all"
return bgp_config
# end _get_bgp_config_xml

Expand Down

0 comments on commit 6f87fdb

Please sign in to comment.