Skip to content

Commit abd7379

Browse files
Bump fboss2 CLI nested-command MAX_DEPTH to 6
The routing-policy term match/action commands nest six levels deep (config protocol bgp policy routing-policy term match), which trips static_assert(N <= M) in utils::arrayToTuple via CmdArgsLists::getTypedArgs. Raise CmdArgsLists::MAX_DEPTH from 5 to 6 to match. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 9713d13 commit abd7379

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fboss/cli/fboss2/CmdArgsLists.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class CmdArgsLists {
7171
private:
7272
// since we do a lot of work of figuring out argument types at compile time,
7373
// for now we need to know the the theoretical max depth of nested subcommands
74-
static constexpr auto MAX_DEPTH = 5;
74+
static constexpr auto MAX_DEPTH = 6;
7575

7676
std::array<std::vector<std::string>, MAX_DEPTH> data_;
7777
};

0 commit comments

Comments
 (0)