summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_nb.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* zebra: North-bound implementation for zebra rmapsSarita Patra2021-03-301-24/+0
| | | | | | | | 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>
* Merge pull request #8250 from idryzhov/fix-nb-running-get-entryRenato Westphal2021-03-241-2/+4
|\ | | | | Fix aborts when using nb_running_get_entry during validation stage
| * zebra: make ribs config falseIgor Ryzhov2021-03-161-2/+4
| | | | | | | | | | | | | | | | | | | | 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>
* | zebra: fix duplicated definitionsIgor Ryzhov2021-02-241-13/+0
|/ | | | Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
* staticd: add support for SR PoliciesSebastien Merle2020-08-121-0/+3
| | | | | | | | | | | | | | 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>
* zebra: evpn l3vni map to vrf nb changesChirag Shah2020-07-211-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* zebra: Moving afi-safi identity to libvdhingra2020-07-161-4/+0
| | | | | | afi-safi identity handling should be in the common place. Signed-off-by: VishalDhingra <vdhingra@vmware.com>
* zebra: rib nb changes with redefined nexthop modelChirag Shah2020-06-111-28/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* zebra: afi-safi identity to value apisChirag Shah2020-05-121-0/+4
| | | | | | | 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>
* zebra: add zebra container to rib modelChirag Shah2020-05-121-84/+91
| | | | | | | | Add zebra container in rib tree. When displaying RIB under vrf, it displays zebra module name. Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
* Merge pull request #6279 from opensourcerouting/nb-cb-argsDonald Sharp2020-04-241-381/+208
|\ | | | | *: change the signature of the northbound callbacks to be more flexible
| * *: change the signature of the northbound callbacks to be more flexibleRenato Westphal2020-04-231-381/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Having a fixed set of parameters for each northbound callback isn't a good idea since it makes it difficult to add new parameters whenever that becomes necessary, as several hundreds or thousands of existing callbacks need to be updated accordingly. To remediate this issue, this commit changes the signature of all northbound callbacks to have a single parameter: a pointer to a 'nb_cb_x_args' structure (where x is different for each type of callback). These structures encapsulate all real parameters (both input and output) the callbacks need to have access to. And adding a new parameter to a given callback is as simple as adding a new field to the corresponding 'nb_cb_x_args' structure, without needing to update any instance of that callback in any daemon. This commit includes a .cocci semantic patch that can be used to update old code to the new format automatically. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* | lib, zebra: add missing extern "C" {} blocks to new header filesRenato Westphal2020-04-231-0/+8
|/ | | | Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* zebra: add weight to nb conversionChirag Shah2020-04-161-0/+3
| | | | Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
* zebra: add nb callbacks for zebra if stateChirag Shah2020-04-161-25/+39
| | | | | | | This is all stub callbacks autogenrated for zebra interface state data. Signed-off-by: chirag Shah <chirag@cumulusnetworks.com>
* zebra: stub changes to assimilate re into rib nbChirag Shah2020-04-161-18/+92
| | | | Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
* zebra: nb callbacks supportChirag Shah2020-04-161-0/+397
Definition of the northbound callbacks and associated YANG data paths for zebra. Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>