Commit 48c3c20
authored
[Vnetorch] Relax attr parsing for vnet route table (sonic-net#4150)
What I did
Set the relax attr parsing flag to true for vnet route table, by default it's false.
If not, exception will throw when there is an expected field.
sonic-swss/orchagent/request_parser.cpp
Lines 160 to 167 in a8d968c
if (!relaxed_attr_parsing_)
{
throw std::invalid_argument(std::string("Unknown attribute name: ") + fvField(*i));
}
else
{
continue;
}
Why I did it
We are adding new fields i.e. pinned_state, the exception throwing adds unnecessary dependency on the ordering of PR merging and feature enabling.1 parent 8b18bee commit 48c3c20
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
| 389 | + | |
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
| |||
0 commit comments