]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Add link bandwidth route-map commands
authorvivek <vivek@cumulusnetworks.com>
Tue, 24 Mar 2020 18:50:44 +0000 (11:50 -0700)
committervivek <vivek@cumulusnetworks.com>
Tue, 31 Mar 2020 03:12:31 +0000 (20:12 -0700)
commitca9ac3effc47dd93352de9f98cab5c016fbfe512
tree702a4049c2fb0373bfbfdb8a1555b8e90eb56873
parent650b05119d2f14f146ccb46b504b48b6dc580f9f
bgpd: Add link bandwidth route-map commands

Implement route-map option to set the link-bandwidth extended
community. The command is of the form:

set extcommunity bandwidth <(1-26214400)|cumulative|num-multipaths>
[non-transitive]

The options available are to specify the actual bandwidth value in
Mbps, base it on the cumulative downstream bandwidth or base it on
the number of multipaths. The last option is based on
https://tools.ietf.org/html/draft-mohanty-bess-ebgp-dmz. Further,
in alignment with the use case described in this IETF draft, the
extended community is encoded as transitive by default. There is an
option available to specify that it should be non-transitive.

The link-bandwidth itself is carried in bytes per second as specifed in
https://tools.ietf.org/html/draft-ietf-idr-link-bandwidth

Note: This commit only handles the processing for bandwidth specifed
as a value; subsequent commits will handle the processing of the other
options.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
bgpd/bgp_ecommunity.h
bgpd/bgp_routemap.c