# Bgp

API module for Bgp

class `pyeapi.api.bgp.``Bgp`(*args, **kwargs)

  Bases: `pyeapi.api.abstract.Entity`

  The Bgp class implements global BGP router configuration

  `add_network`(prefix, length, route_map=None)
  `configure_bgp`(cmd)
  `create`(bgp_as)
  `default`()
  `delete`()
  `get`()

    Returns the bgp routing configuration as a dict object

  `neighbors`
  `remove_network`(prefix, masklen, route_map=None)
  `set_maximum_paths`(max_path=None, max_ecmp_path=None, default=False, disable=False)
  `set_router_id`(value=None, default=False, disable=False)
  `set_shutdown`(default=False, disable=True)

class `pyeapi.api.bgp.``BgpNeighbors`(node)

  Bases: `pyeapi.api.abstract.EntityCollection`

  `command_builder`(name, cmd, value, default, disable)
  `configure`(cmd)
  `create`(name)
  `delete`(name)
  `get`(name)
  `getall`()
  `ispeergroup`(name)
  `set_description`(name, value=None, default=False, disable=False)
  `set_next_hop_self`(name, value=None, default=False, disable=False)
  `set_peer_group`(name, value=None, default=False, disable=False)
  `set_remote_as`(name, value=None, default=False, disable=False)
  `set_route_map_in`(name, value=None, default=False, disable=False)
  `set_route_map_out`(name, value=None, default=False, disable=False)
  `set_send_community`(name, value=None, default=False, disable=False)
  `set_shutdown`(name, default=False, disable=True)

class `pyeapi.api.bgp.``Network`(prefix, length, route_map)

  Bases: `tuple`

  `length`

    Alias for field number 1

  `prefix`

    Alias for field number 0

  `route_map`

    Alias for field number 2

`pyeapi.api.bgp.``instance`(api)