Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: PBR - netlink interaction and basic definitions #2

Closed
wants to merge 402 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Dec 14, 2017

  1. bgpd: handle argv_find_and_parse_afi return value

    Handle the return value of argv_find_and_parse_afi() to avoid passing
    along bad values.
    
    Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
    rzalamena committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    1ad057a View commit details
    Browse the repository at this point in the history
  2. Merge pull request FRRouting#1550 from opensourcerouting/missing-lint…

    …ian-file
    
    debianpkg: Add missing frr-dbg.lintian-overrides to Makefile
    donaldsharp authored Dec 14, 2017
    Configuration menu
    Copy the full SHA
    b9bd264 View commit details
    Browse the repository at this point in the history
  3. Merge pull request FRRouting#1554 from opensourcerouting/cover-fix1

    bgpd: fix some coverity scan issues
    donaldsharp authored Dec 14, 2017
    Configuration menu
    Copy the full SHA
    fe15e7a View commit details
    Browse the repository at this point in the history
  4. zebra, lib: zebra changes for symmetric routing support

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    b7cfce9 View commit details
    Browse the repository at this point in the history
  5. bgpd: Bgpevpn tenant vrf association

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    29c5392 View commit details
    Browse the repository at this point in the history
  6. bgpd: l3vni/rmac association with bgp vrf

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    fe1dc5a View commit details
    Browse the repository at this point in the history
  7. bgpd: import/export rt for BGP vrf

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    c581d8b View commit details
    Browse the repository at this point in the history
  8. zebra: don't get rmac in remote macip add

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    b80320d View commit details
    Browse the repository at this point in the history
  9. bgpd: link l2vnis(bgpevpn) to l3vni(vrf)

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    6a8657d View commit details
    Browse the repository at this point in the history
  10. bgpd: bgpevpn APIs to get l3vni/rmac and import/export RT list

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    6d8c58b View commit details
    Browse the repository at this point in the history
  11. bgpd: add VRF export RTs to mac-ip routes

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    7a3e76f View commit details
    Browse the repository at this point in the history
  12. bgpd: handle export rt change for vrf

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    f1f8b53 View commit details
    Browse the repository at this point in the history
  13. zebra: don't get rmac in remote macip delete

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    23a06e1 View commit details
    Browse the repository at this point in the history
  14. bgpd: rmac ext comm

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    bc59a67 View commit details
    Browse the repository at this point in the history
  15. bgpd: import rt to vrf mapping

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    10ebe1a View commit details
    Browse the repository at this point in the history
  16. bgpd: program mac-ip routes in matching vrfs

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    d3135ba View commit details
    Browse the repository at this point in the history
  17. bgpd: program nh/rmac entries

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    2dbad57 View commit details
    Browse the repository at this point in the history
  18. bgpd: import/unimport vrf routes upon l3vni change

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    5ba238b View commit details
    Browse the repository at this point in the history
  19. bgpd: set evpn rvtep nexthops as active by default

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    19a847a View commit details
    Browse the repository at this point in the history
  20. bgpd: use bgp_process while processing evpn routes in vrf

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    1eb8800 View commit details
    Browse the repository at this point in the history
  21. bgpd: only install mac_ip routes in vrf

    Signed-off-by: Mitesh Kanjariya<mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    30a30f5 View commit details
    Browse the repository at this point in the history
  22. bgpd: do not send label to zebra route add for evpn routes

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    a89b49c View commit details
    Browse the repository at this point in the history
  23. zebra: proper refcounting for rmac/nh entries

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.comy>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    6134fd8 View commit details
    Browse the repository at this point in the history
  24. zebra: show commands for specific rmac/nh entries

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    9aa741e View commit details
    Browse the repository at this point in the history
  25. bgpd: set type-2 route flag if necessary in bgp_zebra_witgdraw

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    01740ff View commit details
    Browse the repository at this point in the history
  26. zebra: free host_list while deleting rmac/nh entry

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    55aabf6 View commit details
    Browse the repository at this point in the history
  27. bgpd: json support for show bgp l2vpn evpn vrf-import-rt

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    181c08c View commit details
    Browse the repository at this point in the history
  28. bgpd: json support for show bgp vrf <> l3vni info

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    ceb9a92 View commit details
    Browse the repository at this point in the history
  29. zebra: json support for show vrf vni command

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    35be554 View commit details
    Browse the repository at this point in the history
  30. zebra: json support for show evpn l3vni

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    51d8de8 View commit details
    Browse the repository at this point in the history
  31. zebra: json support for show evpn l3vni vni command

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    b2ee5a1 View commit details
    Browse the repository at this point in the history
  32. zebra: json support for show evpn next-hop vni all

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    3279896 View commit details
    Browse the repository at this point in the history
  33. zebra: json support for show evpn next-hop l3vni <vni>

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    9187f60 View commit details
    Browse the repository at this point in the history
  34. zebra: json support for show evpn specific next-hop command

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    c0e519d View commit details
    Browse the repository at this point in the history
  35. zebra: json support for show evpn rmac command

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    c0b4eaa View commit details
    Browse the repository at this point in the history
  36. zebra: json support for show evpn rmac vni command

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    75223c9 View commit details
    Browse the repository at this point in the history
  37. zebra: json support for show evpn rmac specific mac command

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    316f4ca View commit details
    Browse the repository at this point in the history
  38. bgpd: uninstall all nh/rmac when l3vni is deleted

    Upon a l3vni delete (no vni under a vrf) is executed,
    we should uninstall all the RMACs and NHs associated with the l3vni.
    This is because by the time we get a route delete in zebra
    l3vni is already deleted and we dont have refernce to RMACs and NHs
    
    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    5e06422 View commit details
    Browse the repository at this point in the history
  39. bgpd: update all routes when vrf changes on a VNI

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    e92bd2a View commit details
    Browse the repository at this point in the history
  40. bgpd: write vrf import/export RT config to frr.conf

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    41d6d60 View commit details
    Browse the repository at this point in the history
  41. zebra: re-install remote next-hop neigh entries upon age out

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    8c9b80b View commit details
    Browse the repository at this point in the history
  42. zebra: only write vni config under vrf if the vni is valid

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    9ccae64 View commit details
    Browse the repository at this point in the history
  43. zebra: remove l3vni/rmac from gw macip APIs

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    964ec88 View commit details
    Browse the repository at this point in the history
  44. bgpd: adjust show bgp l2vpn evpn vni command to avoid sanity breakages

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    6be9a20 View commit details
    Browse the repository at this point in the history
  45. zebra: use list_delete_and_null instead of list_delete

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    bb7a24a View commit details
    Browse the repository at this point in the history
  46. zebra: Reinstall remote VTEP next hop when it becomes stale

    When a remote VTEP next hop entry (for symmetric routing) becomes
    stale, reinstall it. This makes the behavior the same as what is
    done for remote host next hops (for asymmetric routing and ARP
    suppression).
    
    Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
    vivek-cumulus authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    3bcbba1 View commit details
    Browse the repository at this point in the history
  47. bgpd: do not advertise ipv6 host routes with l3-vni related ext-comm

    Currently, kernel doesn't support ipv6 routes with ipv4 nexthops.
    To avoid the crash,
    we will only attach l3-vni related
    RTs/ecommunities only to ipv4 host routes.
    
    Ticket: CM-18743
    Review: ccr-6912
    Testing: Manaul
    
    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    7ec156a View commit details
    Browse the repository at this point in the history
  48. bgpd: move vrf RT command under address-family l2vpn evpn

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    df399d1 View commit details
    Browse the repository at this point in the history
  49. bgpd: properly initialize ret variable

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    c4edf70 View commit details
    Browse the repository at this point in the history
  50. bgpd: handle different sequence of bgp vrf create/delete

    BGP VRF can be created/deleted either via config or via l3vni add/del.
    We need to handle various sequences.
    
    1. If user config is presented, an l3vni del should not delete the vrf instance
    2. do not write bgp config in show running for auto created vrf
    2. If l3vni present, disallow the cli for deleting bgp vrf instance
    3. If l3vni is added and vrf config is present set the flags properly
    4. if bgp vrf is configured unset the AUTO flag
    
    Ticket: CM-18630
    Review: CCR-6906
    Testing: Manual
    
    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    0b5131c View commit details
    Browse the repository at this point in the history
  51. zebra: vrf to vni mapping command is only valid under vrf submode

    Ticket: CM-18821
    Review: Trivial
    Testing: Manual
    
    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    90384b2 View commit details
    Browse the repository at this point in the history
  52. bgpd: move rd id bitfield to bgp_master

    currently, we have a rd_id bitfield
    to assign an unique index for auto RD.
    This bitfield currently resides under struct bgp which seems wrong.
    We need to shift this to a global space
    as this ID space is really global per box.
    One more reason to keep it at a global data structure is,
    the ID space could be used by both VNIs and VRFs.
    
    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    e9eb5f6 View commit details
    Browse the repository at this point in the history
  53. bgpd: RD derivation for VRF

    1. VRF RD can be auto-derived (simillar to RD for a VNI)
    2. VRF RD can be configured manually through a config
    
    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    676f83b View commit details
    Browse the repository at this point in the history
  54. bgpd: set vrf originator ip to kernels local-ip

    For EVPN type-5 route the NH in the NLRI is set to the local tunnel ip.
    This information has to be obtained from kernel notification.
    We need to pass this info from zebra to bgp in l3vni call flow.
    This patch doesn't handle the tunnel-ip change.
    
    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    b67a60d View commit details
    Browse the repository at this point in the history
  55. bgpd: advertise/withdraw type-5 routes upon user config

    CLI config for enabling/disabling type-5 routes
    
    router bgp <as> vrf <vrf>
      address-family l2vpn evpn
        [no] advertise <ipv4|ipv6|both>
    
    loop through all the routes in VRF instance and advertise/withdraw
    all ip routes as type-5 routes in default instance.
    
    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    342dd0c View commit details
    Browse the repository at this point in the history
  56. bgpd: update type-5 routes when RD changes

    when router-id/RD changes for a bgp vrf instance,
    we need to update all type-5 routes.
    
    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    80b140a View commit details
    Browse the repository at this point in the history
  57. bgpd: evpn enabled should only be checked for default instance

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    94c2f69 View commit details
    Browse the repository at this point in the history
  58. bgpd: update/withdraw type-5 routes upon l3-vni add/del

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    06d2e8f View commit details
    Browse the repository at this point in the history
  59. bgpd: update type-5 routes upon vrf export-rt change

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    4992b4a View commit details
    Browse the repository at this point in the history
  60. bgpd: follow AFI/SAFI style for advertising/withdrawing type-5 routes

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    053905d View commit details
    Browse the repository at this point in the history
  61. bgpd: write advertise <ipv4|ipv6> unicast under bgp vrf config

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    6ee8638 View commit details
    Browse the repository at this point in the history
  62. bgpd: only advertise valid subnet routes as evpn type-5 routes

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    408b00c View commit details
    Browse the repository at this point in the history
  63. bgpd: distinguish between frr prefixlen and packet prefixlen for EVPN…

    … type-5 routes
    
    for EVPN routes prefixlen filed in struct prefix
    represents the sizeof of the struct rather than the actual prefix len.
    This is later used in looking up route node in RIB.
    
    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    e9fc284 View commit details
    Browse the repository at this point in the history
  64. bgpd: process evpn type-5 routes received from peers

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    90264d6 View commit details
    Browse the repository at this point in the history
  65. bgpd: advertise/withdraw new added/deleted type-5 routes

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    5424b7b View commit details
    Browse the repository at this point in the history
  66. bgpd: move vrf rd command under address-family l2vpn evpn

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    bf48830 View commit details
    Browse the repository at this point in the history
  67. bgpd: uninstall type-5 routes from vrf

    When we receive an MP_UNREACH,
    we try to uninstall routes from the VRF and the VNI.
    The route-node in the VRF corresponds
    to the ip prefix formed from EVPN prefix.
    We should correctly form the prefix based on the EVPN route-type.
    
    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    42cb44f View commit details
    Browse the repository at this point in the history
  68. zebra/bgpd: cleanup l3vni on no advertise-all-vni

    EVPN is only enabled when user configures advertise-all-vni.
    All VNIs (L2 and L3) should be cleared upon removal of this config.
    
    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    655b04d View commit details
    Browse the repository at this point in the history
  69. bgpd: resolve memory leak in bm_master_init

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    c3004bc View commit details
    Browse the repository at this point in the history
  70. zebra: NUD_STALE is only valid in GNU linux

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    c05a738 View commit details
    Browse the repository at this point in the history
  71. zebra: pass ERR_STR_SZ in zebra_vxlan_process_vrf_vni_cmd

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    3f02fba View commit details
    Browse the repository at this point in the history
  72. zebra: only show vrf matched to a l3-vni in show vrf vni

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari authored and Mitesh Kanjariya committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    0412988 View commit details
    Browse the repository at this point in the history
  73. bgpd: fix configuration of 0 for coalesce-time

    Was using 0 as a sentinel value, so user couldn't configure 0 as the
    value of the coalesce timer.
    
    Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
    qlyoung committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    37a333f View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2017

  1. zebra: pass instance to zebra_find_client

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 15, 2017
    Configuration menu
    Copy the full SHA
    6f3a200 View commit details
    Browse the repository at this point in the history
  2. bgpd: solve SA issue in bgp_evpn_unconfigure_export_rt_for_vrf

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 15, 2017
    Configuration menu
    Copy the full SHA
    877702e View commit details
    Browse the repository at this point in the history
  3. Merge pull request FRRouting#1535 from qlyoung/fix-coalesce-time-display

    bgpd: fix config display of coalesce-time
    rzalamena authored Dec 15, 2017
    Configuration menu
    Copy the full SHA
    62b0598 View commit details
    Browse the repository at this point in the history
  4. Merge pull request FRRouting#1549 from lucize/cross

    configure: exclude some checks not needed on clippy host build
    donaldsharp authored Dec 15, 2017
    Configuration menu
    Copy the full SHA
    8253e0a View commit details
    Browse the repository at this point in the history
  5. bgpd: solve valgrind issues in bgp_evpn_cleanup

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 15, 2017
    Configuration menu
    Copy the full SHA
    c383080 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    acf43be View commit details
    Browse the repository at this point in the history
  7. bgpd: rd_idspace should be freed in bgp_exit

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    Mitesh Kanjariya committed Dec 15, 2017
    Configuration menu
    Copy the full SHA
    3d57c99 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2017

  1. Revert "isisd: bpf: ETHER_HDR_LEN -> ETH_ALEN"

    This reverts commit d9e5b00.
    
    ETH_ALEN is not equivalent to ETHER_HDR_LEN. ETHER_HDR_LEN is the
    definition for the length of the full ethernet header, meanwhile
    ETH_ALEN is just the length of the ethernet address.
    
    Here is the OpenBSD/FreeBSD definition for ETHER_HDR_LEN:
     #define ETHER_ADDR_LEN  6       /* Ethernet address length */
     #define ETHER_TYPE_LEN  2       /* Ethernet type field length */
     #define ETHER_HDR_LEN   ((ETHER_ADDR_LEN * 2) + ETHER_TYPE_LEN)
    
    (OpenBSD's definition is at net/if_ether.h, FreeBSD's is at
     net/ethernet.h)
    
    Linux definitions can be found at: net/ethernet.h
     #define ETHER_ADDR_LEN  ETH_ALEN  /* size of ethernet addr */
     #define ETHER_TYPE_LEN  2         /* bytes in type field */
     #define ETHER_HDR_LEN   ETH_HLEN  /* total octets in header */
    
    net/if_ether.h:
     #define ETH_HLEN       14 /* Total octets in header.       */
     #define ETH_ALEN       6  /* Octets in one ethernet addr   */
    
    Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
    rzalamena committed Dec 18, 2017
    Configuration menu
    Copy the full SHA
    12386e8 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2017

  1. bgpd: fixed '-Werror=maybe-uninitialized' warnings

    - used @SharpD's slack patch as a starting point
    - fixes compile time issue, but code path not tested
    
    Signed-off-by: Raymond P. Burkholder <github@oneunified.net>
    rburkholder authored and donaldsharp committed Dec 19, 2017
    Configuration menu
    Copy the full SHA
    fb8f41e View commit details
    Browse the repository at this point in the history
  2. bgpd: Fix double free

    The json code was freeing json_paths and then
    turning around and free'ing it again.  Newer
    versions of json-c have started to assert
    this bad behavior.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Dec 19, 2017
    Configuration menu
    Copy the full SHA
    449feb8 View commit details
    Browse the repository at this point in the history
  3. Merge pull request FRRouting#1543 from donaldsharp/pim_sg_rpt

    pimd: Really, Actually send S,G rpt prune upstream
    Jafaral authored Dec 19, 2017
    Configuration menu
    Copy the full SHA
    97c772b View commit details
    Browse the repository at this point in the history
  4. Merge pull request FRRouting#1533 from donaldsharp/REALMS

    Add Linux Realms and some Pim Documentation
    Jafaral authored Dec 19, 2017
    Configuration menu
    Copy the full SHA
    75d1899 View commit details
    Browse the repository at this point in the history
  5. Merge pull request FRRouting#1515 from donaldsharp/selected_to_front1

    Store selected_fib as a pointer off of rib_dest_t
    rwestphal authored Dec 19, 2017
    Configuration menu
    Copy the full SHA
    fb6f7c2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1de0576 View commit details
    Browse the repository at this point in the history
  7. Merge pull request FRRouting#1553 from donaldsharp/bgp_json_routes

    bgpd: Speedup vtysh handling of 'show bgp afi safi json' display
    rzalamena authored Dec 19, 2017
    Configuration menu
    Copy the full SHA
    e492e66 View commit details
    Browse the repository at this point in the history
  8. Merge pull request FRRouting#1563 from opensourcerouting/isis-bpf-hlen

    Unbreak ISIS Hellos (FreeBSD)
    donaldsharp authored Dec 19, 2017
    Configuration menu
    Copy the full SHA
    2cef518 View commit details
    Browse the repository at this point in the history
  9. Merge pull request FRRouting#1551 from LabNConsulting/working/master/…

    …minor-perf
    
    bgpd: minor performance enhancement
    donaldsharp authored Dec 19, 2017
    Configuration menu
    Copy the full SHA
    ff99c5b View commit details
    Browse the repository at this point in the history
  10. lib: add ring buffer

    Simple ring buffer implementation useful for fixed size FIFO queues.
    
    Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
    qlyoung committed Dec 19, 2017
    Configuration menu
    Copy the full SHA
    5318d89 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2017

  1. bgpd: convert network statements from DEFUN to DEFPY

    Problems reported with inconsistent use of parameters for bgp network
    statements.  Converted 12 DEFUNs to 2 DEFPY statements, making the
    parameter use consistent with the exception of keeping the "backdoor"
    keywork ipv4 only.  Also verified that if a route-map or label-index
    is specified in the "no" case it matches what had been previously
    defined. Manual testing looks good and bgp-smoke will be performed
    before pushing.
    
    Ticket: CM-16860
    Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
    Reviewed-by: CCR-7056
    dslicenc committed Dec 21, 2017
    Configuration menu
    Copy the full SHA
    e2a86ad View commit details
    Browse the repository at this point in the history

Commits on Dec 26, 2017

  1. lib: add ringbuf_peek()

    Peek functionality for ring buffers and associated tests.
    
    Also:
    * Slight optimization to avoid 0-byte memcpy() by changing > to >=
    * Add rv checks for some ringbuf_[put|get] calls that were missing them
      in the test
    
    Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
    qlyoung committed Dec 26, 2017
    Configuration menu
    Copy the full SHA
    a508062 View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2017

  1. ospfd: Set filter to unbound debug logs

    Ticket:CM-19213
    
    Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
    chiragshah6 committed Dec 27, 2017
    Configuration menu
    Copy the full SHA
    05ba78e View commit details
    Browse the repository at this point in the history
  2. bgpd, lib, zebra: fix style problems

    Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
    mkanjari committed Dec 27, 2017
    Configuration menu
    Copy the full SHA
    523cafc View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2017

  1. ospf6d: Fix ospf6 redist with route-map

    When ospf6 configure with redistribute connected/protocol
    with route-map. Upon restart of frr.service, ospf6 receives
    redistribute update then route-map update.
    During redistribute route update, since route-map info is not
    filled, route is suppressed from injected as external route.
    
    Fix: reset redistribute when route-map update received
    matches with redistribution (type) and route-map name.
    
    Ticket:CM-13800
    Testing Done:
    Configure ospf6 redistribute with route-map to inject
    Type-2 external routes into database. Trigger frr restart
    redistribute with route-map happens.
    
    Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
    chiragshah6 committed Dec 30, 2017
    Configuration menu
    Copy the full SHA
    c600ce4 View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2018

  1. debianpkg: fix indentation and variable name

    Signed-off-by: Raymond P. Burkholder <github@oneunified.net>
    rburkholder authored and donaldsharp committed Jan 2, 2018
    Configuration menu
    Copy the full SHA
    18e1d11 View commit details
    Browse the repository at this point in the history
  2. Merge pull request FRRouting#1583 from donaldsharp/1558-more

    debianpkg: fix indentation and variable name
    riw777 authored Jan 2, 2018
    Configuration menu
    Copy the full SHA
    c930697 View commit details
    Browse the repository at this point in the history
  3. Merge pull request FRRouting#1582 from chiragshah6/mdev1

    ospf6d: Fix ospf6 redist with route-map
    riw777 authored Jan 2, 2018
    Configuration menu
    Copy the full SHA
    eae3872 View commit details
    Browse the repository at this point in the history
  4. Merge pull request FRRouting#1580 from chiragshah6/mdev

    ospfd: Set filter to unbound debug logs
    riw777 authored Jan 2, 2018
    Configuration menu
    Copy the full SHA
    e980cd4 View commit details
    Browse the repository at this point in the history
  5. Merge pull request FRRouting#1572 from dslicenc/bgpd-network-defpy-cm…

    …16860
    
    bgpd: convert network statements from DEFUN to DEFPY
    riw777 authored Jan 2, 2018
    Configuration menu
    Copy the full SHA
    d87c580 View commit details
    Browse the repository at this point in the history
  6. zebra: Fix dest dereference

    The rn can not have an rn->info pointer and as
    such the dest may be NULL.  Don't assign
    the old_fib pointer if so.  This is ok
    because we know RNODE_FOREACH... will not
    iterate if dest is NULL.
    
    Fixes: FRRouting#1575
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 2, 2018
    Configuration menu
    Copy the full SHA
    607425e View commit details
    Browse the repository at this point in the history
  7. Merge pull request FRRouting#1569 from qlyoung/ringbuf

    lib: add ring buffer
    riw777 authored Jan 2, 2018
    Configuration menu
    Copy the full SHA
    82b9bf3 View commit details
    Browse the repository at this point in the history
  8. Merge pull request FRRouting#1584 from donaldsharp/1575_fix

    zebra: Fix dest dereference
    riw777 authored Jan 2, 2018
    Configuration menu
    Copy the full SHA
    baa68bc View commit details
    Browse the repository at this point in the history
  9. ospf6d: Fix External routes ECMP

    Handle RFC 2328 16.4 Calculating AS external routes with ECMP
    
    For ASBR route, if it is learnt via new LSA and contains
    different nexthop list. First lookup route in ospf6 route table
    if it exists, merge nexthop list to existing and call the callback
    to install into FIB (zebra). Delete created new route as it is
    identical to existing entry in route table.
    
    Ticket:CM-16139
    Testing Done:
    Run two ASBR with 2 ECMP paths from each
    DUT neighbor receievs 4 ECMP path to a external route.
    ospf6 installs all 4 ECMP path to FIB/RIB
    
    Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
    chiragshah6 committed Jan 2, 2018
    Configuration menu
    Copy the full SHA
    064d435 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2018

  1. pimd: Add finer grain return codes for configuration

    When PIM handles some MSDP commands, a repeated command
    was causing a CMD_WARNING_CONFIG_FAILED.  This should
    be a CMD_WARNING.  Fix the code to allow vtysh to handle
    this appropriately.
    
    Ticket: CM-19053
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    01841ed View commit details
    Browse the repository at this point in the history
  2. ospfd: return non-zero for configuration failures

    Signed-off-by: lihongguang <lhg803@163.com>
    lihongguang committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    e3e0481 View commit details
    Browse the repository at this point in the history
  3. Merge pull request FRRouting#1589 from lihongguang/master

    ospfd: return non-zero for configuration failures
    donaldsharp authored Jan 3, 2018
    Configuration menu
    Copy the full SHA
    9bc82f1 View commit details
    Browse the repository at this point in the history
  4. bgpd: Fix peer uptime display in milliseconds

    For some reason bgp is calculating the peer uptime
    in miliseconds incorrectly.  Additionally we have
    the peer_uptime function call that should be doing this!
    But since we've choosen different names for the json output
    we cannot fix it at this point.
    
    uptime contains the number of seconds of uptime here.  Just
    multiply by 1k and display that( as peer_uptime does )
    
    Fixes: FRRouting#1585
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    e033027 View commit details
    Browse the repository at this point in the history
  5. bgpd: Allow for deprecation of json bgpTimerUp

    The bgpTimerUp value was incorrectly named, add
    a correct name bgpTimerUpMsec and add some
    code to allow for deprecation.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    d3c7efe View commit details
    Browse the repository at this point in the history
  6. lib: add ringbuf_copy()

    Quick 'n easy way to copy the contents of one ringbuf to another.
    
    Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
    qlyoung committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    cb94eae View commit details
    Browse the repository at this point in the history
  7. lib: fix a few bugs in ring buffers

    * Fix rare failure caused when end pointer is at end of buffer memory
      and a call to ringbuf_get() is made that reads all of the data in the
      buffer; start pointer was advanced past end pointer, causing some
      special handling to be skipped
    * Fix ringbuf_peek() moving start pointer
    * Fix use after free
    * Remove extraneous assignment
    * Update relevant tests
    
    Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
    qlyoung committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    74e4a32 View commit details
    Browse the repository at this point in the history
  8. bgpd: use ring buffer for network input

    The multithreading code has a comment that reads:
    "XXX: Heavy abuse of stream API. This needs a ring buffer."
    
    This patch makes the relevant code use a ring buffer.
    
    Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
    qlyoung committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    74ffbfe View commit details
    Browse the repository at this point in the history
  9. lib: Fix no interface cmd vrf parsing

    For no interface <ifname> vrf VRFNAME,
    vrf-name is not parsed properly.
    
    Ticket:CM-19274
    
    Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
    chiragshah6 committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    1505b53 View commit details
    Browse the repository at this point in the history
  10. ospfd: fix [no] area authentication command

    Signed-off-by: lihongguang lhg803@163.com
    lihongguang committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    ca19319 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2018

  1. Merge pull request FRRouting#1592 from lihongguang/master

    ospfd: fix [no] area authentication command
    donaldsharp authored Jan 4, 2018
    Configuration menu
    Copy the full SHA
    3cace9d View commit details
    Browse the repository at this point in the history
  2. bgpd: fix failing to compile on 32 bit systems

    -Werror=sign-compare is failing with signed/unsigned usage
    in the conditional expression.
    
    Fixes: FRRouting#1593
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 4, 2018
    Configuration menu
    Copy the full SHA
    8356e9b View commit details
    Browse the repository at this point in the history
  3. bgpd: add PMSI_TUNNEL_ATTRIBUTE to EVPN IMET routes

    Signed-off-by: Dario Wiesner <dario.wiesner@gmail.com>
    dwiesner committed Jan 4, 2018
    Configuration menu
    Copy the full SHA
    a21bd7a View commit details
    Browse the repository at this point in the history
  4. Merge pull request FRRouting#1594 from donaldsharp/32_bit_fuckery

    bgpd: fix failing to compile on 32 bit systems
    pguibert6WIND authored Jan 4, 2018
    Configuration menu
    Copy the full SHA
    9f465cc View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2018

  1. ldpd: Add privs to label manager

    Signed-off-by: ßingen <bingen@voltanet.io>
    ßingen committed Jan 5, 2018
    Configuration menu
    Copy the full SHA
    7bfe377 View commit details
    Browse the repository at this point in the history
  2. Merge pull request FRRouting#1595 from dwiesner/pmsi-tunnel

    bgpd: add PMSI_TUNNEL_ATTRIBUTE to EVPN IMET routes
    donaldsharp authored Jan 5, 2018
    Configuration menu
    Copy the full SHA
    bdb6f26 View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2018

  1. lib: Add pthread_yield

    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 6, 2018
    Configuration menu
    Copy the full SHA
    b2140cb View commit details
    Browse the repository at this point in the history
  2. bgpd: Ensure that io thread is running after start

    The BGP IO thread must be running before other threads
    can start using it.  So at startup check to see
    that it running once, instead of before every
    function call into.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 6, 2018
    Configuration menu
    Copy the full SHA
    88b24de View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1882323 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2018

  1. Merge pull request FRRouting#1606 from bingen/lm_privs

    ldpd: Add privs to label manager
    donaldsharp authored Jan 8, 2018
    Configuration menu
    Copy the full SHA
    3abeaef View commit details
    Browse the repository at this point in the history
  2. ospfd: Fix no passive interface command parsing

    Ticket: CM-19365
    
    Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
    chiragshah6 committed Jan 8, 2018
    Configuration menu
    Copy the full SHA
    9a0dfa3 View commit details
    Browse the repository at this point in the history
  3. Merge pull request FRRouting#1590 from chiragshah6/pim_dev

    lib: Fix no interface cmd vrf parsing
    Jafaral authored Jan 8, 2018
    Configuration menu
    Copy the full SHA
    e741a61 View commit details
    Browse the repository at this point in the history
  4. Merge pull request FRRouting#1588 from donaldsharp/msdp_return

    pimd: Add finer grain return codes for configuration
    Jafaral authored Jan 8, 2018
    Configuration menu
    Copy the full SHA
    76724ed View commit details
    Browse the repository at this point in the history
  5. Merge pull request FRRouting#1599 from chiragshah6/mdev

    ospfd: Fix no passive interface command parsing
    Jafaral authored Jan 8, 2018
    Configuration menu
    Copy the full SHA
    4060fcc View commit details
    Browse the repository at this point in the history
  6. pimd: Allow use-source to return more subtle error codes

    The 'ip pim use-source ...' command returns a hard
    success/failure.  Allow it to return a soft-failure
    for when we re-enter the same line.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 8, 2018
    Configuration menu
    Copy the full SHA
    23f1c68 View commit details
    Browse the repository at this point in the history
  7. ospfd: do not complain if same area is reconfigured

    Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
    
    Before
    ------
    cel-redxp-10(config)# router ospf vrf RED
    cel-redxp-10(config-router)# network 1.1.1.1/32 area 0.0.0.0
    cel-redxp-10(config-router)# network 1.1.1.1/32 area 0.0.0.0
    There is already same network statement.
    cel-redxp-10(config-router)#
    
    When we see the "There is already same network statement." message
    vtysh exits non-zero.  This scenario breaks frr-reload because
    the command took and it in the config, it should exit zero here.
    
    After
    -----
    cel-redxp-10(config)# router ospf vrf RED
    cel-redxp-10(config-router)# network 1.1.1.1/32 area 0.0.0.0
    cel-redxp-10(config-router)# network 1.1.1.1/32 area 0.0.0.0
    cel-redxp-10(config-router)# network 1.1.1.1/32 area 0.0.0.0
    cel-redxp-10(config-router)# network 1.1.1.1/32 area 0
    cel-redxp-10(config-router)#
    cel-redxp-10(config-router)# network 1.1.1.1/32 area 0.0.0.1
    There is already same network statement.
    cel-redxp-10(config-router)#
    Daniel Walton committed Jan 8, 2018
    Configuration menu
    Copy the full SHA
    2b0a905 View commit details
    Browse the repository at this point in the history
  8. vtysh: optimize printout routine

    When printing responses from a client, vtysh searches through every
    response it receives twice. Once is to look for the terminating
    sequence and the other is to translate \n to \0, which is used with the
    line processing callback capability. However:
    
    * There's no need to search all of the output for the terminator, we can
      just check the last 4 bytes.
    * In most scenarios we won't have a callback. Therefore we don't need to
      process the output and can just dump it.
    
    Together these optimizations have a significant impact on the total
    runtime of talkative CLI commands, such as `sh ip bgp json` which runs
    roughly 1000% faster when dumping 1,000,000 routes.
    
    Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
    qlyoung committed Jan 8, 2018
    Configuration menu
    Copy the full SHA
    08ee8e2 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2018

  1. lib: add MTYPE for synchronization primitives

    Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
    qlyoung committed Jan 9, 2018
    Configuration menu
    Copy the full SHA
    0bbb9e7 View commit details
    Browse the repository at this point in the history
  2. bgpd: improve bgp thread startup characteristics

    Replace atomic spinlock with condition variable.
    
    Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
    qlyoung committed Jan 9, 2018
    Configuration menu
    Copy the full SHA
    f09a656 View commit details
    Browse the repository at this point in the history
  3. bgpd: use atomic_* ops on _Atomic variables

    Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
    qlyoung committed Jan 9, 2018
    Configuration menu
    Copy the full SHA
    0112e9e View commit details
    Browse the repository at this point in the history
  4. Merge pull request FRRouting#1615 from qlyoung/fix-bgpd-atomic-usage

    bgpd: use atomic_* ops on _Atomic variables
    louberger authored Jan 9, 2018
    Configuration menu
    Copy the full SHA
    d215f9a View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2018

  1. sharpd: add .gitignore

    Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
    qlyoung committed Jan 10, 2018
    Configuration menu
    Copy the full SHA
    1de8dd9 View commit details
    Browse the repository at this point in the history
  2. bgpd: move startup sync lock around

    Condition needs to be set inside critical section, otherwise i/o thread
    can deadlock. Also unlock mutex once finished with it, no need to hold
    the lock for the life of the program.
    
    Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
    qlyoung committed Jan 10, 2018
    Configuration menu
    Copy the full SHA
    f42ebe8 View commit details
    Browse the repository at this point in the history
  3. bgpd: 'summary' to show NoNeg if peer did not negotiate afi/safi

    If we have configured neighbor 1.1.1.1 for an afi/safi but they have not
    activated that afi/safi with us then display "NoNeg" in the state column
    of the summary output.  This is to make troubleshooting afi/safi
    easier.
    
    Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
    Daniel Walton authored and donaldsharp committed Jan 10, 2018
    Configuration menu
    Copy the full SHA
    95077ab View commit details
    Browse the repository at this point in the history
  4. Merge pull request FRRouting#1608 from donaldsharp/use_source

    pimd: Allow use-source to return more subtle error codes
    Jafaral authored Jan 10, 2018
    Configuration menu
    Copy the full SHA
    d1df0ee View commit details
    Browse the repository at this point in the history
  5. bgpd: fix updating redist bitmask when vrf_id changes

    Problem reported that when "systemctl restart networking" was
    performed, prefixes previously redistributed into bgp from connected
    were deleted from the bgp table.  Determined that we were not correctly
    changing the redistribution bitmask when the vrf_id of the vrf was
    changed. This patch corrects that behavior.
    
    Manual tests look good. bgp-min and vrf-min completed with no new failures.
    
    Ticket: CM-19369
    Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
    Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
    dslicenc committed Jan 10, 2018
    Configuration menu
    Copy the full SHA
    48c74f8 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2018

  1. Merge pull request FRRouting#1586 from donaldsharp/1585_fix

    bgpd: Fix peer uptime display in milliseconds
    riw777 authored Jan 11, 2018
    Configuration menu
    Copy the full SHA
    bb46988 View commit details
    Browse the repository at this point in the history
  2. Merge pull request FRRouting#1591 from qlyoung/bgpd-ringbuf

    bgpd: use ring buffer for network input
    riw777 authored Jan 11, 2018
    Configuration menu
    Copy the full SHA
    2ed7e4c View commit details
    Browse the repository at this point in the history
  3. Merge pull request FRRouting#1620 from dslicenc/bgpd-vrf-redist

    bgpd: fix updating redist bitmask when vrf_id changes
    riw777 authored Jan 11, 2018
    Configuration menu
    Copy the full SHA
    3a92d53 View commit details
    Browse the repository at this point in the history
  4. Merge pull request FRRouting#1619 from donaldsharp/bgp_debugging

    bgpd: 'summary' to show NoNeg if peer did not negotiate afi/safi
    riw777 authored Jan 11, 2018
    Configuration menu
    Copy the full SHA
    d29715c View commit details
    Browse the repository at this point in the history
  5. Merge pull request FRRouting#1616 from qlyoung/sharpd-gitignore

    sharpd: add .gitignore
    riw777 authored Jan 11, 2018
    Configuration menu
    Copy the full SHA
    51f682b View commit details
    Browse the repository at this point in the history
  6. Merge pull request FRRouting#1609 from dwalton76/ospf-reconfigure-area

    ospfd: do not complain if same area is reconfigured
    riw777 authored Jan 11, 2018
    Configuration menu
    Copy the full SHA
    c124004 View commit details
    Browse the repository at this point in the history
  7. zebra: Add one-shot thread to recheck speed

    There are certain interfaces that when brought up and we receive
    the netlink notification about it, the speed of the interface is
    not set correctly.  This creates a one-shot thread that will
    wait 15 seconds and then requery the speed and if it is different
    it will renotify the running daemons.
    
    The kernel should notify us on speed changes, unfortunately this
    is not done currently via a netlink message as you would think.
    As I understand it there is some in-fighting about the proper
    way to approach this issue and due to the way the kernel release
    cycle works we are a ways off from getting this fixed.  This
    is a `hack` to make us work correctly while we wait for the
    true answer.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    dc7b3ca View commit details
    Browse the repository at this point in the history
  8. lib, bgpd: fixup use of of CMD_ARGC_MAX

    The constant to limit # of allowed cli tokens on any one line was
    defined in multiple places, all inconsistent with each other. Fix.
    
    Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
    qlyoung committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    09f6d01 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9bb77a5 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    4781461 View commit details
    Browse the repository at this point in the history
  11. bgpd: preserve admin shutdown on peer-group add

    When a peer configured with administrative shutdown is added to a peer
    group, the administrative shutdown status is discarded and the peer will
    enter the BGP FSM. This is not what we want. Preserve the flag instead.
    
    Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
    qlyoung committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    89898ce View commit details
    Browse the repository at this point in the history
  12. bgp: don't show vnc response-lifetime config line when set to default…

    … value
    
    Signed-off-by: Lou Berger <lberger@labn.net>
    louberger committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    9b73cd8 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2018

  1. Merge pull request FRRouting#1624 from qlyoung/fix-cmd-argc-max-usage

    lib, bgpd: fixup use of of CMD_ARGC_MAX
    rwestphal authored Jan 12, 2018
    Configuration menu
    Copy the full SHA
    48442c0 View commit details
    Browse the repository at this point in the history
  2. Merge pull request FRRouting#1455 from mkanjari/evpn-symmetric-routing

    Support for Evpn symmetric routing + EVPN Prefix route
    pguibert6WIND authored Jan 12, 2018
    Configuration menu
    Copy the full SHA
    8eac481 View commit details
    Browse the repository at this point in the history
  3. bgpd: fix summary line reporting routes with RDs (no json case)

    Signed-off-by: Lou Berger <lberger@labn.net>
    louberger committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    0136788 View commit details
    Browse the repository at this point in the history
  4. Merge pull request FRRouting#1626 from LabNConsulting/working/master/…

    …vnc-config
    
    bgp: don't show vnc response-lifetime config line when set to default…
    donaldsharp authored Jan 12, 2018
    Configuration menu
    Copy the full SHA
    b782607 View commit details
    Browse the repository at this point in the history
  5. lib: Add notice of when we can remove some deprecated code.

    The zapi_ipv4_route, zapi_ipv6_route and zapi_ipv4_route_ipv6_nexthop
    functions are deprecated.  Add notice of when we can remove the
    deprecated code from the system.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    0cb76b9 View commit details
    Browse the repository at this point in the history
  6. lib: Allow interface lookup by VRF_UNKNOWN

    Modify if_lookup_by_index to accept a VRF_UNKNOWN
    as a vrf_id.  This will cause it to look in all
    vrf's for the interface pointer.
    
    Subsequently all if_XXXX functions that call this function
    will also get this behavior.
    
    VRF_UNKNOWN *should* not be used for interface creation
    as that this will break some core assumptions.
    
    This work is part of allowing vrf route leaking.  Currently
    it is possible to create a route in the linux kernel that has
    a nexthop across vrf boundaries.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    14fcc65 View commit details
    Browse the repository at this point in the history
  7. zebra: Add nh_vrf_id to 'struct route_entry`

    With VRF route-leaking we need to know what vrf
    the nexthops are in compared to this vrf.  This
    code adds the nh_vrf_id to the route entry and
    sets it up correctly for the non-route-leaking
    case.
    
    The assumption here is that future commits
    will make the nh_vrf_id *different* than
    the vrf_id.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    8f43b4d View commit details
    Browse the repository at this point in the history
  8. zebra: Use the correct vrf id to lookup the ifp pointer

    Use the nexthop vrf_id to properly lookup the ifp pointer
    for display purposes.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    99b9d96 View commit details
    Browse the repository at this point in the history
  9. zebra: Add nh_vrf_id to rib_add

    Add to the rib_add function the ability to pass in the nexthops
    vrf.
    
    Additionally when we decode the netlink message from the linux
    kernel, properly figure out the nexthops vrf_id.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    8795f90 View commit details
    Browse the repository at this point in the history
  10. zebra: When handling nexthops use the correct vrf

    When we are handling nexthops in zebra, use the appropriate
    vrf to figure out if the nexthops are active or not.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    007dbee View commit details
    Browse the repository at this point in the history
  11. zebra: When displaying nexthop information show correct vrf

    If the vrf for the nexthop is different than the vrf the
    route is in, display the nexthops vrf.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    2793a09 View commit details
    Browse the repository at this point in the history
  12. *: Send/receive the nexthop vrf_id

    Modify the code to send and receive to/from zebra
    the nexthops vrf_id.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    d5b2119 View commit details
    Browse the repository at this point in the history
  13. lib: Increment zapi version number

    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    9ceac4c View commit details
    Browse the repository at this point in the history
  14. zebra: Move NS/VRF initialization earlier

    Move the NS/VRF initialization code for zebra to an earlier
    point in startup.  In the future we will have code that
    will want to install_element into a VRF_NODE from zebra_vty.c
    
    Signed-off-by: Donald Sharp <sahrpd@cumulusnetworks.com>
    donaldsharp committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    f84fc2c View commit details
    Browse the repository at this point in the history
  15. zebra: Add zebra_static_route_leak function

    Add a function to handle the route leaking of a static
    route.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    2f03bc8 View commit details
    Browse the repository at this point in the history
  16. zebra: Add the zvrf pointer to the 'struct static_route'

    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    cbb0dbf View commit details
    Browse the repository at this point in the history
  17. zebra: Cleanup vrf_config_write

    Optimize vrf_config_write a tiny bit to be a bit more efficient.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    ab32921 View commit details
    Browse the repository at this point in the history
  18. zebra: Add vrf level 'ip route ...' commands

    Add the ability to accept 'ip route ...' commands
    from within a vrf context.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    b2ffa06 View commit details
    Browse the repository at this point in the history
  19. zebra: Move ip route ... generation to vrf control

    Move the code that generates the 'show run' output for
    'ip route' to be controlled by the vrf config generation
    code.  Since it really belongs there.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    3772804 View commit details
    Browse the repository at this point in the history
  20. zebra: Encode the ifindex over netlink

    In order for routes to be leaked the ifindex must be sent
    down into the kernel over the netlink protocol.  So
    send it( we always figure it out ) when we add the
    route.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    5e21052 View commit details
    Browse the repository at this point in the history
  21. zebra: Allow static non interface based routes to leak

    Allow this to work:
    
    vrf DONNA
      ip route 4.3.2.1/32 192.168.1.5 nexthop-vrf EVA
    
    The static route code was not properly telling the
    nexthop resolution code what vrf to use.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    5bdd34d View commit details
    Browse the repository at this point in the history
  22. zebra: Add ability for default vrf to route-leak

    Allow the end user to specify static routes that leak
    across vrf's in the default vrf.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    6140853 View commit details
    Browse the repository at this point in the history
  23. BGP "allowas-in" should accept AS paths with "local-as"

    Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
    
    For issue FRRouting#1548
    Daniel Walton committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    c436891 View commit details
    Browse the repository at this point in the history
  24. vtysh: add ability to output to file

    Add ability to set file destination for all vtysh output, with the
    exception of tab-complete and similar meta output. This is useful for
    inline recording of some information without exiting the shell.
    
    Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
    qlyoung committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    193a5a9 View commit details
    Browse the repository at this point in the history
  25. bgpd: disallow invalid config at cli layer

    Remove the ability to attempt to configure a couple of options on
    directly connected neighbors that don't make sense for them, as well as
    the soft error handling code.
    
    Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
    qlyoung committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    a174be6 View commit details
    Browse the repository at this point in the history
  26. bgpd: add neighbor autoshutdown

    Adds ability to specify that peers should be administratively shutdown
    when first configured.
    
    Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
    qlyoung committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    f26845f View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2018

  1. bgpd: fix handling of nhp_ary when exporting vrf routes to zebra

    Signed-off-by: Lou Berger <lberger@labn.net>
    louberger committed Jan 14, 2018
    Configuration menu
    Copy the full SHA
    b40c506 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2018

  1. Merge pull request FRRouting#1623 from donaldsharp/zebra_interface_on…

    …e_shot
    
    zebra: Add one-shot thread to recheck speed
    rwestphal authored Jan 15, 2018
    Configuration menu
    Copy the full SHA
    3cd878d View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2018

  1. ospf6d: Add protocol stats and show command

    Add OSPFv3 Protocol incoming/outgoing packets
    stats.
    
    r3# show ipv6 ospf6 interface traffic
    
    Interface       HELLO            DB-Desc         LS-Req    LS-Update     LS-Ack
                    Rx/Tx            Rx/Tx            Rx/Tx    Rx/Tx         Rx/Tx
    --------------------------------------------------------------------------------------------
    swp1              3/4              2/2             0/2     8/6           3/2
    swp2              3/4              2/2             0/1     7/3           2/0
    swp3              0/4              0/0             0/0     0/0           0/0
    
    Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
    chiragshah6 committed Jan 16, 2018
    Configuration menu
    Copy the full SHA
    43855e3 View commit details
    Browse the repository at this point in the history
  2. ospfd: Speed up show ip ospf [vrf all] route json

    Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
    chiragshah6 committed Jan 16, 2018
    Configuration menu
    Copy the full SHA
    1406159 View commit details
    Browse the repository at this point in the history
  3. Merge pull request FRRouting#1612 from chiragshah6/mdev

    ospf6d: Add protocol stats and show command
    rwestphal authored Jan 16, 2018
    Configuration menu
    Copy the full SHA
    dab1b55 View commit details
    Browse the repository at this point in the history
  4. Merge pull request FRRouting#1635 from qlyoung/bgpd-remove-options-di…

    …rectly-connected
    
    bgpd: disallow invalid config at cli layer
    rwestphal authored Jan 16, 2018
    Configuration menu
    Copy the full SHA
    9d57c91 View commit details
    Browse the repository at this point in the history
  5. Merge pull request FRRouting#1638 from LabNConsulting/working/master/…

    …vnc2zebra
    
    bgpd: fix handling of nhp_ary when exporting vrf routes to zebra
    rwestphal authored Jan 16, 2018
    Configuration menu
    Copy the full SHA
    21f8f34 View commit details
    Browse the repository at this point in the history
  6. Merge pull request FRRouting#1642 from chiragshah6/mdev1

    ospfd: Speed up show ip ospf [vrf all] route json
    odd22 authored Jan 16, 2018
    Configuration menu
    Copy the full SHA
    23b6084 View commit details
    Browse the repository at this point in the history
  7. Merge pull request FRRouting#1614 from qlyoung/imp-bgpd-pthread-start…

    …up-sync
    
    improve bgpd thread startup characteristics
    louberger authored Jan 16, 2018
    Configuration menu
    Copy the full SHA
    49323fd View commit details
    Browse the repository at this point in the history
  8. Merge pull request FRRouting#1632 from dwalton76/bgpd-localas-allowasin

    BGP "allowas-in" should accept AS paths with "local-as"
    riw777 authored Jan 16, 2018
    Configuration menu
    Copy the full SHA
    df294c8 View commit details
    Browse the repository at this point in the history
  9. Merge pull request FRRouting#1611 from qlyoung/fix-vtysh-perf

    vtysh: optimize printout routine
    rwestphal authored Jan 16, 2018
    Configuration menu
    Copy the full SHA
    04057a9 View commit details
    Browse the repository at this point in the history
  10. Merge pull request FRRouting#1625 from qlyoung/fix-peer-group-admin-s…

    …hutdown-override
    
    bgpd: preserve admin shutdown on peer-group add
    rwestphal authored Jan 16, 2018
    Configuration menu
    Copy the full SHA
    4e7b328 View commit details
    Browse the repository at this point in the history
  11. lib: avoid crash when cancelling invalid rw job

    There are some observed instances where we end up trying to cancel a rw
    job based on a file descriptor that we don't have a reference on. The
    specific cancel function for rw jobs assumes it's called with a file
    descriptor that is valid within pollfds and will cause a segmentation
    fault by buffer overrun if this is not the case.
    
    Instead log it and move on. Since the fd does not exist this should
    patch over the buggy behavior and provide additional information to help
    in finding the root cause.
    
    Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
    Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
    qlyoung committed Jan 16, 2018
    Configuration menu
    Copy the full SHA
    42d7453 View commit details
    Browse the repository at this point in the history
  12. Merge pull request FRRouting#1627 from qlyoung/bgp-autoshutdown

    BGP auto-shutdown
    riw777 authored Jan 16, 2018
    Configuration menu
    Copy the full SHA
    7256280 View commit details
    Browse the repository at this point in the history
  13. Merge pull request FRRouting#1634 from qlyoung/vtysh-output-file

    vtysh: add ability to output to file
    riw777 authored Jan 16, 2018
    Configuration menu
    Copy the full SHA
    7c0c85a View commit details
    Browse the repository at this point in the history
  14. ospfd: show ip ospf interface json output format

    Current json output does not differentiate start of
    interface objects. Adding "interfaces" keyword at the
    beginning of the interface list. This is useful
    when displaying vrf level output along with interface list.
    
    Ticket:CM-19115
    Testing Done:
    show ip ospf vrf all interface json
    show ip ospf vrf all interface <specific intf> json
    show ip ospf interface json
    show ip ospf interface <specific intf> json
    
    Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
    chiragshah6 committed Jan 16, 2018
    Configuration menu
    Copy the full SHA
    7dab10c View commit details
    Browse the repository at this point in the history
  15. frr: update README

    * Clarify that FRR implements as well as manages protocols
    * Move IS-IS out of "early support"
    * Add Babel - friends don't leave friends out of READMEs!
    * Add mention of further information
    
    Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
    qlyoung committed Jan 16, 2018
    Configuration menu
    Copy the full SHA
    91437c6 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2018

  1. tools: frr-reload 'vni' keyword does not always create a sub-context

    Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
    Daniel Walton committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    9d877af View commit details
    Browse the repository at this point in the history
  2. ospfd: LSDB_LOOP treat it as a loop.

    Inform the .clang-format file about LSDB_LOOP and
    put the proper indentation for this loop into the
    code.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    044506e View commit details
    Browse the repository at this point in the history
  3. bgpd: Remove peer->hash as that it is unused

    The peer->hash pointer is allocating a bunch of memory
    but is never used.  Remove.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    48a67e2 View commit details
    Browse the repository at this point in the history
  4. Merge pull request FRRouting#1649 from donaldsharp/ospfd_lsdb_loop

    ospfd: LSDB_LOOP treat it as a loop.
    rwestphal authored Jan 17, 2018
    Configuration menu
    Copy the full SHA
    a23df59 View commit details
    Browse the repository at this point in the history
  5. Merge pull request FRRouting#1650 from donaldsharp/hash_it_fucker

    bgpd: Remove peer->hash as that it is unused
    rwestphal authored Jan 17, 2018
    Configuration menu
    Copy the full SHA
    a80281d View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2018

  1. redhat: Build with FPM

    Build redhat rpm's with FPM.  It's a module so not
    a bad idea.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 18, 2018
    Configuration menu
    Copy the full SHA
    84b05ca View commit details
    Browse the repository at this point in the history
  2. zebra: Add some more debug information on read issues in FPM

    When we receive a read failure in handling a FPM read
    let's add a bit more information to what we think has
    gone wrong, in a hope that debugging will be a bit easier.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 18, 2018
    Configuration menu
    Copy the full SHA
    677f704 View commit details
    Browse the repository at this point in the history
  3. Merge pull request FRRouting#1646 from qlyoung/update-readme

    frr: update README
    Jafaral authored Jan 18, 2018
    Configuration menu
    Copy the full SHA
    f5b366f View commit details
    Browse the repository at this point in the history
  4. Merge pull request FRRouting#1648 from dwalton76/frr-reload

    tools: frr-reload 'vni' keyword does not always create a sub-context
    Jafaral authored Jan 18, 2018
    Configuration menu
    Copy the full SHA
    81dadac View commit details
    Browse the repository at this point in the history
  5. Merge pull request FRRouting#1645 from qlyoung/fix-cancel-invalid-rw

    lib: avoid crash when cancelling invalid rw job
    Jafaral authored Jan 18, 2018
    Configuration menu
    Copy the full SHA
    9ee9eb8 View commit details
    Browse the repository at this point in the history
  6. Merge pull request FRRouting#1566 from chiragshah6/ospfv3_dev

    ospf6d: Fix External routes ECMP
    Jafaral authored Jan 18, 2018
    Configuration menu
    Copy the full SHA
    0c6a8fb View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2018

  1. Configuration menu
    Copy the full SHA
    7bcc8da View commit details
    Browse the repository at this point in the history
  2. Merge pull request FRRouting#1630 from LabNConsulting/working/master/…

    …pr1629-no-json
    
    bgpd: fix reporting of no vpn routes (no json)
    donaldsharp authored Jan 19, 2018
    Configuration menu
    Copy the full SHA
    0071178 View commit details
    Browse the repository at this point in the history
  3. Doc: Update OSPF-TE and ISIS-TE example

     - In ospfd and isisd documentation, Traffic Engineering examples
    are referring to old interface syntax. Update both examples to
    'link-param' syntax.
    
    Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
    odd22 committed Jan 19, 2018
    Configuration menu
    Copy the full SHA
    ee65c55 View commit details
    Browse the repository at this point in the history
  4. Merge pull request FRRouting#1647 from chiragshah6/ospf_vrf_dev

    ospfd: show ip ospf interface json output format
    odd22 authored Jan 19, 2018
    Configuration menu
    Copy the full SHA
    4ff9eb7 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2018

  1. zebra: Install connected routes during VRF change only if interface i…

    …s up
    
    During VRF change handling, the connected route for the interface should be
    installed only if the interface is up. Otherwise, we end up with duplicate
    connected routes which can lead to other problems.
    
    Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
    Reviewed-by:   Don Slice <dslice@cumulusnetworks.com>
    
    Ticket: CM-19364
    Reviewed By: CCR-7099
    Testing Done: Manual verification
    vivek-cumulus authored and donaldsharp committed Jan 21, 2018
    Configuration menu
    Copy the full SHA
    4030583 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2018

  1. Merge pull request FRRouting#1661 from donaldsharp/connected

    zebra: Install connected routes during VRF change only if interface i…
    rwestphal authored Jan 22, 2018
    Configuration menu
    Copy the full SHA
    c228c75 View commit details
    Browse the repository at this point in the history
  2. lib: increase vrf_id from 16 bit to 32 bit identifier

    This is a preparatory work for configuring vrf/frr over netns
    vrf structure is being changed to 32 bit, and the VRF will have the
    possibility to have a backend made up of NETNS.
    
    Let's put some history.
    Initially the 32 bit was because one wanted to map on vrf_id both the
    VRFLITE and the NSID.
    Initially, one would have liked to make zebra configure at the same time
    both vrf lite and vrf from netns in a flat way. From the show
    running perspective, one would have had both kind of vrfs, thatone
    would configure on the same way.
    however, it leads to inconsistencies in concepts, because it mixes vrf
    vrf with vrf, and vrf is not always mapped with netns.
    For instance, logical-router could also be used with netns. In that
    case, it would not be possible to map vrf with netns.
    There was an other reason why 32 bit is proposed. this is because
    some systems handle NSID to 32 bits. As vrf lite exists only on
    Linux, there are other systems that would like to use an other vrf
    backend than vrf lite. The netns backend for vrf will be used for that
    too. for instance, for windows or freebsd, some similar
    netns concept exists; so it will be easier to reuse netns
    backend for vrf, than reusing vrflite backend for vrf.
    
    This commit is here to extend vrf_id to 32 bits. Following commits in a
    second step will help in enable a VRF backend.
    
    Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
    pguibert6WIND committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    a9ff90c View commit details
    Browse the repository at this point in the history
  3. lib: vrf_bitmap_groups increased from 8 to 1024

    The number of vrf bitmap groups is increased so as to avoid consuming
    too much memory. This fix is related to a fork memory that occured when
    running pimd as daemon.
    A check on memory consumed shows that the memory consumed goes from
    33480ko to 46888ko with that change. This is less compared to if the
    value of the bitmap groups is increased to 16 ( 852776ko).
    
    Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
    pguibert6WIND committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    3bd7475 View commit details
    Browse the repository at this point in the history
  4. lib: ns_id_t changed to 32 bit

    Because the VRF_ID is mapped into 32 bit, and because when NETNS will be
    the backend of VRF, then the NS identifier must also be encoded as 32
    bit.
    Also, the NS_UNKNOWN value is changed accordingly to UINT32_MAX.
    Also, the NS_UNKNOWN and NS_DEFAULT values are removed from zebra_ns.h
    and kept on ns.h header file.
    
    Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
    pguibert6WIND committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    3eca551 View commit details
    Browse the repository at this point in the history
  5. ospfd: fix compilation issue with ospfd

    the change of vrf_id field from 16 bit to 32 bit leads to some changes
    in other daemon.
    
    Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
    pguibert6WIND committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    fe3da9e View commit details
    Browse the repository at this point in the history
  6. bgpd: fix compilation issue with bgpd

    Changes due to the change of vrf_id_t moved from 16 bits to 32 bits.
    
    Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
    pguibert6WIND committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    a8bf7d9 View commit details
    Browse the repository at this point in the history
  7. pim: fix compilation issue with pim

    The change of vrf_id_t from 16 bit to 32 bit needs some changes in pim
    daemon.
    
    Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
    pguibert6WIND committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    87ad28f View commit details
    Browse the repository at this point in the history
  8. bgpd: bgp_redist_lookup param handles instances, not vrfs

    The VRF_DEFAULT parameter is incorrectly used. The 0 value for the bgp
    instance is passed instead.
    
    Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
    
    fixup bgpd: fix compilation issue with bgpd
    pguibert6WIND committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    2fcdb1b View commit details
    Browse the repository at this point in the history
  9. zebra: replace 0 value on zebra with VRF_DEFAULT

    On some places of code, the VRF_DEFAULT define was not used. This commit
    is ensuring that the macros is well used.
    
    Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
    pguibert6WIND committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    90ac32c View commit details
    Browse the repository at this point in the history
  10. zebra: replace 0 value on zebra with NS_DEFAULT

    On some places, macro NS_DEFAULT was not used. This commit is replacind
    on some identified places where 0 can be replaced with NS_DEFAULT macro.
    
    Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
    pguibert6WIND committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    f1abb72 View commit details
    Browse the repository at this point in the history
  11. Merge pull request FRRouting#1587 from pguibert6WIND/issue_385_step23

    Netns Support / passing vrf_id_t to 32 bit work
    riw777 authored Jan 22, 2018
    Configuration menu
    Copy the full SHA
    4b1e01b View commit details
    Browse the repository at this point in the history
  12. Merge pull request FRRouting#1658 from Orange-OpenSource/TE

    Doc: Update OSPF-TE and ISIS-TE example
    riw777 authored Jan 22, 2018
    Configuration menu
    Copy the full SHA
    f8f7e9c View commit details
    Browse the repository at this point in the history
  13. Merge pull request FRRouting#1651 from donaldsharp/redhat_build_fpm

    redhat: Build with FPM
    riw777 authored Jan 22, 2018
    Configuration menu
    Copy the full SHA
    8602ad3 View commit details
    Browse the repository at this point in the history
  14. lib, zebra: Rename and place appropriately the label stack

    Fix and rename the label stack to be better named.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    8ecdb26 View commit details
    Browse the repository at this point in the history
  15. zebra: use zclient_create_header

    The function zserv_create_header was exactly the same
    as zclient_create_header.  Let's just have one in the
    system.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    7cf15b2 View commit details
    Browse the repository at this point in the history
  16. zebra: implement recursive MPLS labels

    When a nexthop is resolved via a label based nexthop, copy
    the labels into the newly created recursive nexthop.
    
    Please note that this does not fix the case where we
    have a label based nexthop that is recursively resolved
    through *another* nexthop that is also label based.
    In this case we need to create a new label stack
    for those routes.
    
    Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
    rwestphal authored and donaldsharp committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    f674dfe View commit details
    Browse the repository at this point in the history
  17. Merge pull request FRRouting#1656 from ak503/bgp

    bgp: small fix for write to 'address-family l2vpn evpn' configuration
    rwestphal authored Jan 22, 2018
    Configuration menu
    Copy the full SHA
    75869e4 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    c192736 View commit details
    Browse the repository at this point in the history
  19. bgpd: update last_update whenever obuf sent

          (to be consistent with last_write updates)
    
    Signed-off-by: Lou Berger <lberger@labn.net>
    louberger committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    eb2277c View commit details
    Browse the repository at this point in the history
  20. Merge pull request FRRouting#1655 from LabNConsulting/working/master/…

    …consistent_count
    
    bgpd: update last_update whenever obuf sent
    qlyoung authored Jan 22, 2018
    Configuration menu
    Copy the full SHA
    5c65809 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2018

  1. Merge pull request FRRouting#1618 from donaldsharp/zebra_startup_orde…

    …ring
    
    zebra route-leaking for static routes
    pguibert6WIND authored Jan 23, 2018
    Configuration menu
    Copy the full SHA
    d6fed38 View commit details
    Browse the repository at this point in the history
  2. pbrd: Add PBR shell to compile and startup daemon

    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    b922918 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2018

  1. vtysh: Add PBR as a viable option

    Add the PBRD as a command that vtysh can interact with.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    75ed06d View commit details
    Browse the repository at this point in the history
  2. pbrd: Add infrastructure for pbr_vty

    Add the infrastructure for the pbr_vty.[ch] code
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    9318d95 View commit details
    Browse the repository at this point in the history
  3. lib, zebra: Move nh_resolve_via_default to appropriate header

    The nh_resolve_via_default function is an accessor function
    for NHT in zebra.  Let's move this function to it's proper
    place.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    fa82188 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2018

  1. pbrd, vtysh: Add initial cli to allow some thought about the issue

    Add an initial cli to allow people to mock this up some.
    "pbr-policy (1-100000) {src <A.B.C.D/M|X:X::X:X/M>|dest <A.B.C.D/M|X:X::X:X/M>} nexthop-group NAME"
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    2bedd4e View commit details
    Browse the repository at this point in the history
  2. pbrd: Add pbr_map.[ch] code to compilation

    pbr_map.[ch] will contain the code that handles
    the policy-mapping.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    59b0897 View commit details
    Browse the repository at this point in the history
  3. pbrd: Add .gitignore file

    Add some code to tell git what to ignore.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    cb0b378 View commit details
    Browse the repository at this point in the history
  4. pbrd: Add a RB Tree infrastructure to hold the pbr_maps

    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    c2ab99c View commit details
    Browse the repository at this point in the history
  5. pbrd: Add ability to build from inside pbrd directory

    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    68b282c View commit details
    Browse the repository at this point in the history
  6. zebra: Modify struct route_entry to use nexthop_groups

    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    9cb844a View commit details
    Browse the repository at this point in the history
  7. lib, zebra: Move ALL_NEXTHOPS loop to nexthop_group.h

    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    e33dc68 View commit details
    Browse the repository at this point in the history
  8. lib: Isolate nexthop_group functions to nexthop_group.c

    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    6306963 View commit details
    Browse the repository at this point in the history
  9. lib, pbrd, vtysh: Start cli for nexthop-group

    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    5741b99 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2018

  1. zebra: Fix broken compile for some configure options.

    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 31, 2018
    Configuration menu
    Copy the full SHA
    34f29a9 View commit details
    Browse the repository at this point in the history
  2. lib: Add missing NH_GROUP_NODE to a switch statement

    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 31, 2018
    Configuration menu
    Copy the full SHA
    65862e5 View commit details
    Browse the repository at this point in the history
  3. lib, vtysh: Add nexthop-group NODE to config

    Add code that tracks creation and deletion of the nexthop-group.
    
    Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
    donaldsharp committed Jan 31, 2018
    Configuration menu
    Copy the full SHA
    3ba52be View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2018

  1. *: PBR - netlink interaction and basic definitions

    Implement netlink interactions for Policy Based Routing. This includes
    APIs to install and uninstall rules and handle notifications from the
    kernel related to rule addition or deletion. Various definitions are
    added to facilitate this.
    
    Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
    Reviewed-by:   Donald Sharp <sharpd@cumulusnetworks.com>
    vivek-cumulus committed Feb 4, 2018
    Configuration menu
    Copy the full SHA
    7a15f54 View commit details
    Browse the repository at this point in the history