Skip to content

Commit

Permalink
Add comment to explain why we do not use VRF reference in pattern table
Browse files Browse the repository at this point in the history
  • Loading branch information
Junchao-Mellanox committed Jan 25, 2022
1 parent 530967f commit d230e18
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sonic-yang-models/yang-models/sonic-flex_counter.yang
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,11 @@ module sonic-flex_counter {
key "vrf_name ip_prefix";

leaf vrf_name {
/*
We don't use vrf_name reference here because:
1. User is allowed to configure a VRF that does not exist yet here, orchagent is designed to resolve the VRF name once the VRF is created.
2. The field vrf_name accept both VRF name and VNET name.
*/
type string {
length 0..16;
}
Expand Down

0 comments on commit d230e18

Please sign in to comment.