mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00

This commit introduces the Frontend Interface which can be used by front-end management clients like Netconf server, Restconf Server and CLI to interact with new FRR Management daemon (MGMTd) to access and sometimes modify FRR management data. This commit includes the following functionalities in the changeset: 1. Add new Frontend server for clients connect to. 2. Add a C-based Frontend client library which can be used by Frontend clients to communicate with MGMTd via the Frontend interface. 3. Maintain a frontend adapter for each connection from an appropriate Frontend client to facilitate client requests and track one or more client sessions across it. 4. Define the protobuf message format for messages to be exchanged between MGMTd Frontend module and the Frontend client. 5. This changeset also introduces an instance of MGMT Frontend client embedded within the lib/vty module that can be leveraged by any FRR daemon to connect to MGMTd's Frontend interface. The same has been integrated with and initialized within the MGMTd daemon's process context to implement a bunch of 'set-config', 'commit-apply', 'get-config' and 'get-data' commands via VTYSH Co-authored-by: Pushpasis Sarkar <pushpasis@gmail.com> Co-authored-by: Abhinay Ramesh <rabhinay@vmware.com> Co-authored-by: Ujwal P <ujwalp@vmware.com> Signed-off-by: Yash Ranjan <ranjany@vmware.com>
84 lines
1.8 KiB
YAML
84 lines
1.8 KiB
YAML
---
|
|
BasedOnStyle: LLVM
|
|
Language: Cpp
|
|
IndentWidth: 8
|
|
UseTab: Always
|
|
BreakBeforeBraces: Linux
|
|
AlwaysBreakBeforeMultilineStrings: true
|
|
AllowShortIfStatementsOnASingleLine: false
|
|
AllowShortLoopsOnASingleLine: false
|
|
AllowShortFunctionsOnASingleLine: false
|
|
IndentCaseLabels: false
|
|
AlignEscapedNewlinesLeft: false
|
|
AlignTrailingComments: true
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
AlignAfterOpenBracket: true
|
|
SpaceAfterCStyleCast: false
|
|
MaxEmptyLinesToKeep: 2
|
|
BreakBeforeBinaryOperators: None
|
|
BreakStringLiterals: false
|
|
SortIncludes: false
|
|
IncludeCategories:
|
|
- Regex: '^(<|lib)'
|
|
Priority: 0
|
|
CommentPragmas: '\$(FRR|clippy)'
|
|
ContinuationIndentWidth: 8
|
|
ForEachMacros:
|
|
# lib
|
|
- frr_each
|
|
- frr_each_safe
|
|
- frr_each_from
|
|
- frr_rev_each
|
|
- frr_rev_each_safe
|
|
- frr_rev_each_from
|
|
- frr_with_mutex
|
|
- frr_with_privs
|
|
- LIST_FOREACH
|
|
- LIST_FOREACH_SAFE
|
|
- SLIST_FOREACH
|
|
- SLIST_FOREACH_SAFE
|
|
- SLIST_FOREACH_PREVPTR
|
|
- STAILQ_FOREACH
|
|
- STAILQ_FOREACH_SAFE
|
|
- TAILQ_FOREACH
|
|
- TAILQ_FOREACH_SAFE
|
|
- TAILQ_FOREACH_REVERSE
|
|
- TAILQ_FOREACH_REVERSE_SAFE
|
|
- RB_FOREACH
|
|
- RB_FOREACH_SAFE
|
|
- RB_FOREACH_REVERSE
|
|
- RB_FOREACH_REVERSE_SAFE
|
|
- SPLAY_FOREACH
|
|
- FOR_ALL_INTERFACES
|
|
- FOR_ALL_INTERFACES_ADDRESSES
|
|
- JSON_FOREACH
|
|
# libyang
|
|
- LY_FOR_KEYS
|
|
- LY_LIST_FOR
|
|
- LY_TREE_FOR
|
|
- LY_TREE_DFS_BEGIN
|
|
- LYD_TREE_DFS_BEGIN
|
|
# zebra
|
|
- RE_DEST_FOREACH_ROUTE
|
|
- RE_DEST_FOREACH_ROUTE_SAFE
|
|
- RNODE_FOREACH_RE
|
|
- RNODE_FOREACH_RE_SAFE
|
|
# bgpd
|
|
- UPDGRP_FOREACH_SUBGRP
|
|
- UPDGRP_FOREACH_SUBGRP_SAFE
|
|
- SUBGRP_FOREACH_PEER
|
|
- SUBGRP_FOREACH_PEER_SAFE
|
|
- SUBGRP_FOREACH_ADJ
|
|
- SUBGRP_FOREACH_ADJ_SAFE
|
|
- AF_FOREACH
|
|
- FOREACH_AFI_SAFI
|
|
- FOREACH_AFI_SAFI_NSF
|
|
- FOREACH_SAFI
|
|
# ospfd
|
|
- LSDB_LOOP
|
|
# mgmtd
|
|
- FOREACH_MGMTD_DB_ID
|
|
- FOREACH_ADAPTER_IN_LIST
|
|
- FOREACH_SESSION_IN_LIST
|
|
- FOREACH_SESSION_IN_LIST_SAFE
|