summaryrefslogtreecommitdiff
path: root/yang/frr-route-map.yang
AgeCommit message (Collapse)Author
2024-10-15bgpd: Implement `set metric aigp` commandDonatas Abraitis
Same as `set metric igp`, but in this case accumulated IGP metric is being sent as MED attribute. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2024-10-15bgpd: Implement `set metric igp` commandDonatas Abraitis
Set metric automatically from the path info (IGP protocol). Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2024-07-03yang: Corrected typo at yang fileY Bharath
Corrected typo at yang file Signed-off-by: y-bharath14 <y.bharath@samsung.com>
2024-05-10lib: Allow doing match/set tag untaggedDonatas Abraitis
In route-map: `match tag untagged`. E.g. Cisco/Juniper allows that, but they use `match tag 0` instead. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-04-18lib, ospfd, yang: add route map set for min/max metricJafar Al-Gharaibeh
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
2023-02-09yang: add SPDX License IDsDavid Lamparter
YANG files get to keep their license boilerplate in addition to the SPDX header, since they are likely to be copied around individually. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2021-11-24bgpd: Add an ability to match ipv6 next-hop by prefix-listDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2021-11-23bgpd: Add an ability to match ipv6 next-hop by access-listDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2021-04-06lib: convert route-map optimization to NBIgor Ryzhov
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2021-03-30lib,zebra,bgpd,ospfd,ospf6d: Route-map yang defnsSarita Patra
This commit includes the following: 1) Modifications to the frr-route-map.yang to enable addition of bgpd, ospfd, ospf6d and zebra specific route map match/set clauses. 2) Yang definitions for bgpd match/set clauses. 3) Yang definitions for ospfd and ospf6d match/set clauses. 4) Yang definitions for zebra match/set clauses. Signed-off-by: NaveenThanikachalam <nthanikachal@vmware.com> Signed-off-by: Sarita Patra <saritap@vmware.com>
2020-09-19Merge pull request #7069 from opensourcerouting/fix-set-metricDonald Sharp
lib: fix the "set metric" route-map command
2020-09-09lib: fix the "set metric" route-map commandRenato Westphal
The "set metric" command wasn't processing metric additions and subtractions (using + and -) correctly. Fix those problems. Also, remove the "+metric" and "-metric" options since they don't work and don't make any sense (they could be interpreted as unitary increments/decrements but that was never supported). Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2020-08-07build, yang: bump libyang minimum required version to 1.0.184Renato Westphal
It's time to say good bye to libyang 0.16.105. The recently released libyang 1.0.184 includes numerous bug fixes and performance improvements that we need. Despite the major version bump from 0.x to 1.x, the libyang API is the same except for a single backward-incompatible change in the user types interface (which we're currently not using). Hence no code changes were necessary to adapt FRR to libyang 1.x. This commit also reintroduces some leafrefs that needed to be removed from our YANG modules due to a bug that was present on libyang 0.16.105. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2020-07-31yang: route-map model description formatChirag Shah
Added "." at the enf of each description of fields. Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-07-31yang: route-map style formatChirag Shah
Align to yanglint format Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-07-31yang: create route-map leafref reference typeChirag Shah
Create leafref reference type for route-map name. Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-07-19lib,yang: merge cisco/zebra access list stylesRafael Zalamena
Merge the cisco style access list with zebra's logic so we can mix both types of rules while keeping the commands. With this the cisco style limitation of having 'destination-*' only for specific number ranges no longer exist for users of YANG/northbound (the CLI still has this limitation). Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2020-05-04yang: adopt the BSD-2-Clause license for our YANG modulesRenato Westphal
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2020-04-03lib: [YANG] Route-map inteface forward refSantosh P K
To satisfy forward reference for interface in route-map. Libyang 0.16 does not support leafref yet. Signed-off-by: Santosh P K <sapk@vmware.com>
2020-03-31Merge pull request #5183 from opensourcerouting/zebra-route-map-nbQuentin Young
yang/zebra: migrate route map to northbound
2020-03-25*: use the current project name (FRRouting)Lou Berger
Signed-off-by: Lou Berger <lberger@labn.net>
2020-03-23yang: zebra route map fixes based on feedbackRafael Zalamena
Fix copy & paste on YANG description and add new route types that appeared. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2020-03-23yang: add zebra specific route map optionsRafael Zalamena
* Extend the route map yang model to have zebra enumerations; * Add zebra route map specific match/set values; Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2020-02-04yang: update route map modelRafael Zalamena
Important changes: * Rename top container `route-map` to `lib`; * Rename list `instance` to `route-map`; * Move route map repeated data to list `entry`; * Use interface reference instead of typedef'ed string; * Remove some zebra specific route map conditions; * Protect `tag` set value with `when "./action = 'tag'"`; Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2019-08-01yang: use filter types in route-mapRafael Zalamena
Import the new YANG model filter and use its types. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2019-08-01yang: initial route-map YANG model importRafael Zalamena
New model based on FRR's CLI and data structures. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>