summaryrefslogtreecommitdiff
path: root/zebra/zebra_nb.c
AgeCommit message (Collapse)Author
2024-01-28zebra: convert interface shutdown command to NBIgor Ryzhov
Replace "shutdown" leaf with "enabled" leaf in frr-zebra YANG module to make it in line with standard YANG models. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-01-28zebra: convert interface link-detect command to NBIgor Ryzhov
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2023-12-28zebra: support yielding between oper state routes queryChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-09-20zebra: add northbound api hooks for nexthop segmentsDmytro Shytyi
Provide skeleton hooks for nexthop segments Those hooks address seg6 segs stack entries defined in the YANG model Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
2023-08-10zebra, yang: add an mpls leaf to interfacePhilippe Guibert
The yang NB API does not handle the mpls configuration on its leaf. Add an mpls leaf to stick to the mpls configuration. - true or false to mean if config - not defined, means no config. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2023-02-17Merge pull request #12780 from opensourcerouting/spdx-license-idDonald Sharp
*: convert to SPDX License identifiers
2023-02-10lib,yang,zebra: add extended admin-group supportLouis Scalbert
Add the support of Extended Admin-Group (RFC7308) to the zebra interface link-params Traffic-Engineering context. Extended admin-groups can be configured with the affinity-map: > affinity-map blue bit-position 221 > int eth-rt1 > link-params > affinity blue > exit-link-params Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
2023-02-09*: auto-convert to SPDX License IDsDavid Lamparter
Done with a combination of regex'ing and banging my head against a wall. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2021-03-30zebra: North-bound implementation for zebra rmapsSarita Patra
This commit introduces the implementation for the north-bound callbacks for the zebra-specific route-map match and set clauses. Signed-off-by: NaveenThanikachalam <nthanikachal@vmware.com> Signed-off-by: Sarita Patra <saritap@vmware.com>
2021-03-16zebra: make ribs config falseIgor Ryzhov
Zebra routing tables are not controlled by the user and can not be created/deleted manually. Current NB create/destroy callbacks are incorrectly implemented because instead of creating/deleting the RIB they are only checking for it's existence. YANG model should reflect the real situation. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2020-08-12staticd: add support for SR PoliciesSebastien Merle
Configuration example: ip route 9.9.9.9/32 6.6.6.6 color 123 The SR Policy to be chosen is uniquely identified by the policy endpoint (6.6.6.6) and the SR-TE color (123). Traffic will be augmented with an MPLS label stack according to the active candidate path of that particular policy. Co-authored-by: GalaxyGorilla <sascha@netdef.org> Signed-off-by: Sebastien Merle <sebastien@netdef.org>
2020-07-20zebra: evpn l3vni map to vrf nb changesChirag Shah
The set of northbound changes for l3vni configuration command under vrf. vrf x vni 1000 prefix-routes-only { "frr-vrf:lib": { "vrf": [ { "name": "vrf1", "frr-zebra:zebra": { "l3vni-id": 4001 } }, { "name": "vrf2", "frr-zebra:zebra": { "l3vni-id": 4002, "prefix-only": true } } ] } } Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-07-16zebra: Moving afi-safi identity to libvdhingra
afi-safi identity handling should be in the common place. Signed-off-by: VishalDhingra <vdhingra@vmware.com>
2020-06-10zebra: rib nb changes with redefined nexthop modelChirag Shah
RIB operational northbound changes based on redfined nexthop model. Testing Done: { "afi-safi-name": "ipv4-unicast", "table-id": 254, "route": [ { "prefix": "0.0.0.0/0", "route-entry": [ { "protocol": "kernel", "distance": 0, "metric": 100, "selected": [null], "installed": [null], "internal-flags": 8, "internal-status": 16, "uptime": "2020-06-06T00:28:26.139797Z", "nexthop-group": { "id": 15, "nexthop": [ { "nh-type": "ip4-ifindex", "vrf": "0", "gateway": "10.0.2.2", "interface": "enp0s3", "active": [null], "fib": [null] } ] } } ] }, { "prefix": "1.1.1.4/32", "route-entry": [ { "protocol": "kernel", "distance": 0, "metric": 0, "selected": [null], "installed": [null], "internal-flags": 8, "internal-status": 16, "uptime": "2020-06-06T00:28:26.139790Z", "nexthop-group": { "id": 16, "nexthop": [ { "nh-type": "ifindex", "vrf": "0", "gateway": "", "interface": "dummy4", "active": [null], "fib": [null] } ] } } ] } ] } Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-05-12zebra: afi-safi identity to value apisChirag Shah
Helper APIs to convert afi-safi identity to values. Signed-off-by: Renato Westphal <renato@opensourcerouting.org> Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-05-12zebra: add zebra container to rib modelChirag Shah
Add zebra container in rib tree. When displaying RIB under vrf, it displays zebra module name. Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-04-16zebra: add weight to nb conversionChirag Shah
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-04-16zebra: add nb callbacks for zebra if stateChirag Shah
This is all stub callbacks autogenrated for zebra interface state data. Signed-off-by: chirag Shah <chirag@cumulusnetworks.com>
2020-04-16zebra: stub changes to assimilate re into rib nbChirag Shah
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-04-16zebra: nb callbacks supportChirag Shah
Definition of the northbound callbacks and associated YANG data paths for zebra. Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>