Skip to content

Commit 48c3c20

Browse files
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

File tree

orchagent/vnetorch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ class BfdMonitorOrch : public Orch2
386386
class VNetRouteRequest : public Request
387387
{
388388
public:
389-
VNetRouteRequest() : Request(vnet_route_description, ':') { }
389+
VNetRouteRequest() : Request(vnet_route_description, ':', true) { }
390390
};
391391

392392
struct VNetNextHopUpdate

0 commit comments

Comments
 (0)