Commit 85ccd7f
committed
fboss2 bgp config: address clang-tidy findings
- Use auto for the SimpleJSONSerializer template-cast result in
ConfigSession::saveBgpConfig() (modernize-use-auto).
- Drop redundant .c_str() on the TEnumTraits::findValue() argument in
the neighbor enum attribute handler (readability-redundant-string-cstr).
- Drop the unused parseInt using-declaration in the peer-group
dispatcher (misc-unused-using-decls).
- Drop the unused bgp_policy_types.h include from the as-path-list
delete command (misc-include-cleaner).1 parent 2af948f commit 85ccd7f
4 files changed
Lines changed: 2 additions & 5 deletions
File tree
- fboss/cli/fboss2
- commands
- config/protocol/bgp
- neighbor
- peer-group
- delete/protocol/bgp/policy/as-path-list
- session
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
237 | | - | |
| 236 | + | |
238 | 237 | | |
239 | 238 | | |
240 | 239 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
595 | | - | |
| 595 | + | |
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
| |||
0 commit comments