summaryrefslogtreecommitdiffstats
path: root/yang (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #17882 from LabNConsulting/chopps/doc-update-mgmtdJafar Al-Gharaibeh10 days1-3/+22
|\ | | | | small mgmtd-dev doc update and yanglint cleanup
| * yang: lint cleanup of test moduleChristian Hopps12 days1-3/+22
| | | | | | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* | yang: Add SRv6 to frr-staticd YANG modelYuqing Zhao12 days1-1/+101
|/ | | | Signed-off-by: Yuqing Zhao <galadriel.zyq@alibaba-inc.com>
* Merge pull request #17836 from pguibert6WIND/limit_comm_list_countDonatas Abraitis13 days1-0/+17
|\ | | | | limit community list count
| * topotest: add a test to control the community-list countPhilippe Guibert2025-01-141-0/+6
| | | | | | | | | | | | Add a test to control the community-list count. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
| * bgpd: add 'match community-count' command to restrict comm countPhilippe Guibert2025-01-141-0/+11
| | | | | | | | | | | | | | Add a mechanism in route-map to filter out route-map which have a list of communities greater than the given number. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
* | Merge pull request #17799 from LabNConsulting/chopps/backend-yang-modelDonald Sharp2025-01-152-0/+103
|\ \ | | | | | | mgmtd backend yang model (depends on #17796)
| * | lib: northbound/mgmtd: add backend model supportChristian Hopps2025-01-142-0/+103
| |/ | | | | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* / pimd,yang: Expand rpf-lookup-mode commandNathan Bahr2025-01-091-4/+22
|/ | | | | | | | | | | | | | | Add options for group-list and source-list, both of which take a prefix list name. The prefix list is used to determine the lookup mode for specific sources and/or groups. Any number of lookup modes can be configured as long as the combination of group and source list is unique. A global lookup mode (empty group and source lists) is always added and defaults to mrib-then-urib as it currently functions. The global lookup mode can be changed as it current exists with the command `rpf-lookup-mode MODE`. When determinig which mode to use, match source (and group if provided) against the lists, if they are set. If a lookup does not specify a group, then only use lookup modes that do not have a group list defined. A lookup by definition will have a source, so no special handling there. Signed-off-by: Nathan Bahr <nbahr@atcorp.com>
* tests: add test for new northbound get functionChristian Hopps2025-01-071-0/+3
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* Merge pull request #17252 from nabahr/mcast-modeRafael Zalamena2024-12-162-50/+51
|\ | | | | Fix PIMD RPF lookup mode and nexthop tracking
| * pimd,yang: Reimplement RPF lookup vty in router pimNathan Bahr2024-12-131-3/+51
| | | | | | | | | | | | | | Add rpf-lookup-mode MODE vty command under router pim block. Including NB piping and config write. Using the mode still pending. Signed-off-by: Nathan Bahr <nbahr@atcorp.com>
| * zebra,yang: Completely remove multicast mode from zebraNathan Bahr2024-12-121-47/+0
| | | | | | | | | | | | | | | | | | | | Multicast mode belongs in PIM, so removing it completely from zebra. Modified `show (ip|ipv6) rpf ADDRESS` to always lookup from SAFI_MULTICAST. This means this command is now specific to the multicast table and does not necessarily reflect the PIM RPF lookup, but that should be implemented in PIM instead. Signed-off-by: Nathan Bahr <nbahr@atcorp.com>
* | pimd: support originator id configurationRafael Zalamena2024-12-121-0/+8
|/ | | | | | Allow user to specify the RP field for the SA messages. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* Merge pull request #17521 from opensourcerouting/msdp-sa-limitJafar Al-Gharaibeh2024-12-101-0/+6
|\ | | | | pimd: MSDP per peer SA limit
| * yang,pimd: support shutdown and SA limitRafael Zalamena2024-12-051-0/+6
| | | | | | | | | | | | | | | | Add MSDP shutdown and SA limiting configuration to YANG model. (no implementation, just boiler plate code) Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* | pimd,yang: Extend multicast boundary functionalityCorey Siltala2024-12-061-1/+11
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new interface command ip multicast boundary ACCESSLIST4_NAME. This allows filtering on both source and group using the extended access-list syntax vs. group-only as with the existing "ip multicast boundary oil" command, which uses prefix-lists. If both are configured, the prefix- list is evaluated first. The default behavior for both prefix-lists and access-lists remains "deny", so the prefix-list must have a terminating "permit" statement in order to also evaluate against the access-list. The following example denies groups in range 229.1.1.0/24 and groups in range 232.1.1.0/24 with source 10.0.20.2: ! ip prefix-list pim-oil-plist seq 10 deny 229.1.1.0/24 ip prefix-list pim-oil-plist seq 20 permit any ! access-list pim-acl seq 10 deny ip host 10.0.20.2 232.1.1.0 0.0.0.255 access-list pim-acl seq 20 permit ip any any ! interface r1-eth0 ip address 10.0.20.1/24 ip igmp ip pim ip multicast boundary oil pim-oil-plist ip multicast boundary pim-acl ! Signed-off-by: Corey Siltala <csiltala@atcorp.com>
* pimd: implement MSDP shutdown commandRafael Zalamena2024-11-251-0/+7
| | | | | | Allow MSDP protocol to be disabled. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* Merge pull request #17340 from nabahr/mapping-agentRafael Zalamena2024-11-211-1/+56
|\ | | | | PIMD: Implement AutoRP mapping-agent
| * pimd,yang: Add PIMD northbound/yang for AutoRP mapping agentNathan Bahr2024-11-191-1/+56
| | | | | | | | | | | | Reuses the candidate selection logic from BSR configuration Signed-off-by: Nathan Bahr <nbahr@atcorp.com>
* | pimd,yang: log MSDP SA eventsRafael Zalamena2024-11-211-0/+7
| | | | | | | | | | | | Add new command to log all SA events. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* | pimd,yang: log MSDP neighbor eventsRafael Zalamena2024-11-211-0/+7
|/ | | | | | Move MSDP neighbor events global debug to per PIM instance. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* pim6d: support embedded-rpRafael Zalamena2024-11-131-0/+51
| | | | | | | | | | | | | Implement embedded RP support and configuration commands. Embedded RP is disabled by default and can be globally enabled with the command `embedded-rp` in the PIMv6 configuration node. It supports the following options: - Embedded RP maximum limit - Embedded RP group filtering Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* Merge pull request #17231 from guoguojia2021/guozhongfeng_alibabaDonatas Abraitis2024-11-081-3/+4
|\ | | | | bgpd:support of color extended community color-only types
| * bgpd:support of color extended community color-only typesguozhongfeng.gzf2024-11-071-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support of color extended community color-only types, RFC 9256. The type only support 00 01 10. configuration example: ! frr version 10.3-dev-my-manual-build frr defaults traditional hostname router3 ! route-map color permit 1 set extcommunity color 10:100 01:200 00:300 exit ! vrf Vrf1 exit-vrf ! interface lo ipv6 address 3::3/128 exit ! router bgp 3 bgp router-id 3.3.3.3 bgp log-neighbor-changes no bgp ebgp-requires-policy no bgp default ipv4-unicast bgp bestpath as-path multipath-relax timers bgp 10 30 neighbor 100.13.13.1 remote-as 1 neighbor 100.13.13.1 advertisement-interval 0 neighbor 100.23.23.2 remote-as 2 neighbor 100.23.23.2 advertisement-interval 0 neighbor 1000:3000::1 remote-as 1 neighbor 1000:3000::1 ebgp-multihop neighbor 1000:3000::1 update-source 1000:3000::3 neighbor 1000:3000::1 capability extended-nexthop neighbor 2000:3000::2 remote-as 2 neighbor 2000:3000::2 ebgp-multihop neighbor 2000:3000::2 update-source 2000:3000::3 neighbor 2000:3000::2 capability extended-nexthop ! address-family ipv4 unicast neighbor 100.13.13.1 activate neighbor 100.23.23.2 activate exit-address-family ! address-family ipv6 unicast redistribute connected route-map color neighbor 1000:3000::1 activate neighbor 2000:3000::2 activate exit-address-family exit ! end Signed-off-by: guozhongfeng.gzf <guozhongfeng.gzf@alibaba-inc.com>
* | isisd: fix change flex-algorithm number from uint32 to uint8Philippe Guibert2024-10-251-1/+1
|/ | | | | | | | | The algorithm number is encoded on 8 bits and does not require an unsigned 32 bit value to store the value. Fixes: cc4926c1284e ("isisd,yang: add algorithm-prefix-sid configuration tree") Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
* Merge pull request #16946 from opensourcerouting/fix/match_src-peerRuss White2024-10-161-0/+37
|\ | | | | bgpd: Implement match src-peer ... command
| * bgpd: Implement `match src-peer ...` commandDonatas Abraitis2024-09-271-0/+37
| | | | | | | | | | | | To match source peer on the outgoing direction. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* | bgpd: Implement `set metric aigp` commandDonatas Abraitis2024-10-151-0/+8
| | | | | | | | | | | | | | 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>
* | bgpd: Implement `set metric igp` commandDonatas Abraitis2024-10-151-0/+8
| | | | | | | | | | | | Set metric automatically from the path info (IGP protocol). Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* | bfdd, doc, yang: change bfd timer and multiplier valuesPhilippe Guibert2024-10-081-5/+5
|/ | | | | | | | | | | | | | | | | The minimum and maximum values for BFD timers and multiplier settings have been updated to align with RFC 5880 requirements. Since the values inputted via VTY are in milliseconds, the maximum permissible value on the VTY interface is 4,294,967 milliseconds. For the multiplier setting, the minimum value is now restricted to be greater than zero, as zero is not allowed. The minimum transmit interval has been set to 10 milliseconds to ensure reliable service performance. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com> Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
* pimd,yang: Implement AutoRP CLI and NB config pathNathan Bahr2024-09-241-0/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New CLI commands added: router pim [vrf NAME] autorp discovery autorp announce RP-ADDR [GROUP | group-list PREFIX-LIST] autorp announce {scope (1-255) | interval (1-65535) | holdtime (0-65535)} autorp discovery Enables Auto RP discovery for learning dynamic RP information using the AutoRP protocol. autorp announce RP-ADDR [GROUP | group-list PREFIX-LIST] Enable announcements of a candidate RP with the given group range, or prefix list of group ranges, to an AutoRP mapping agent. autorp announce {scope (1-255) | interval (1-65535) | holdtime (0-65535)} Configure the parameters of the AutoRP announcement messages. The scope sets the packet TTL. The interval sets the time between TX of announcements. The holdtime sets the hold time in the message, the time the mapping agent should wait before invalidating the candidate RP information. debug pim autorp Enable debug logging of the AutoRP protocol show ip pim [vrf NAME] autorp [json] Show details of the AutoRP protocol. To view learned RP info, use the existing command 'show ip pim rp-info' Extend pim yang for new configuration: augment /frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/frr-pim:pim/frr-pim:address-family: +--rw rp +--rw auto-rp +--rw discovery-enabled? boolean +--rw announce-scope? uint8 +--rw announce-interval? uint16 +--rw announce-holdtime? uint16 +--rw candidate-rp-list* [rp-address] +--rw rp-address inet:ip-address +--rw (group-or-prefix-list)? +--:(group) | +--rw group? frr-route-types:ip-multicast-group-prefix +--:(prefix-list) +--rw prefix-list? plist-ref Signed-off-by: Nathan Bahr <nbahr@atcorp.com>
* Merge pull request #16861 from btrent98/igmp-proxy2Donald Sharp2024-09-241-0/+7
|\ | | | | Add igmp proxy support
| * pimd, yang: add cli for igmp proxyBarry A. Trent2024-09-201-0/+7
| | | | | | | | Signed-off-by: Barry A. Trent <barry.trent@atcorp.com>
* | Merge pull request #16873 from louis-6wind/fix-yang-rmapDonatas Abraitis2024-09-231-10/+6
|\ \ | | | | | | yang: use relative path for route-map
| * | yang: use relative path for route-mapLouis Scalbert2024-09-191-10/+6
| |/ | | | | | | | | | | | | | | | | | | f1ea52bee9 ("yang: use relative path instead of absolute one for route-map") has introduced a route-map optimization but some paths were not changed. Use relative path instead absolute one everywhere. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
* | Merge pull request #16891 from okda-networks/bgp_yangDonald Sharp2024-09-221-0/+13
|\ \ | |/ |/| yang: added as-notation leaf to global-bgp-config
| * yang: added as-notation leaf to global-bgp-configali aqrabawi2024-09-211-0/+13
| | | | | | | | Signed-off-by: ali aqrabawi <aaqrabaw@okdanetworks.com>
* | Merge pull request #16438 from Jafaral/pim-10.1-cand-rpDonald Sharp2024-09-142-0/+175
|\ \ | |/ |/| PIM candidate BSR/RP support
| * pimd: Candidate-BSR supportJafar Al-Gharaibeh2024-09-091-0/+38
| | | | | | | | | | Signed-off-by: David Lamparter <equinox@opensourcerouting.org> Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
| * pimd: Candidate-RP supportJafar Al-Gharaibeh2024-09-092-0/+137
| | | | | | | | | | Signed-off-by: David Lamparter <equinox@opensourcerouting.org> Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
* | Merge pull request #15259 from dmytroshytyi-6WIND/nexthop_resolutionRuss White2024-09-101-0/+10
|\ \ | |/ |/| zebra: add LSP entry to nexthop via recursive (part 2)
| * zebra: add 'mpls fec nexthop-resolution' command to vtyshDmytro Shytyi2024-06-071-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commands added: r3# configure r3(config)# mpls fec MPLS FEC table label Label configuration ldp Label Distribution Protocol lsp Establish label switched path r3(config)# mpls fec mpls fec nexthop-resolution Authorise nexthop resolution over all labeled routes. r3(config)# mpls fec mpls fec nexthop-resolution r3# configure r3(config)# vrf default r3(config-vrf)# mpls fec MPLS FEC table r3(config-vrf)# mpls fec mpls fec nexthop-resolution Authorise nexthop resolution over all labeled routes. r3(config-vrf)# mpls fec nexthop-resolution east-vm# show running-config Building configuration... ... ! mpls fec nexthop-resolution ! ... Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
* | Merge pull request #16450 from nabahr/static_joinsDonald Sharp2024-08-221-2/+19
|\ \ | | | | | | PIM: Implement static IGMP joins without an IGMP report
| * | pimd, yang: Implement igmp static-group commandNathan Bahr2024-08-151-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will add a static IGMP group that does not rely on an underlying socket join which sends traffic to the cpu unneccesarily. Instead, the groups are joined directly without any IGMP interactions. New command is under interfaces, 'ip igmp static-group ...'. Added an alias for 'ip igmp join ...' to 'ip igmp join-group'. Moved IGMP join groups to new yang list "join-group" and reused the "static-group" list for the IGMP static groups. Signed-off-by: Nathan Bahr <nbahr@atcorp.com>
* | | *: Spelling issuesDonald Sharp2024-08-181-1/+1
| | | | | | | | | | | | Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* | | yang: MSDP authentication supportRafael Zalamena2024-07-291-0/+33
| | | | | | | | | | | | | | | | | | Specify MSDP authentication specification model. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* | | yang: MSDP SA filtering supportRafael Zalamena2024-07-271-0/+16
| | | | | | | | | | | | | | | | | | Add option to configure MSDP peer SA incoming/outgoing filtering. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* | | yang: Added missed prefix to the yang fileY Bharath2024-07-221-0/+3
|/ / | | | | | | | | | | Corrected warning by including the module Signed-off-by: y-bharath14 <y.bharath@samsung.com>
* | Merge pull request #16412 from y-bharath14/srib-yang-bDonatas Abraitis2024-07-201-3/+0
|\ \ | | | | | | yang: Fixed pyang warnings at frr-bfdd yang file