Skip to content

Commit

Permalink
[yang-models] Removing sonic-acl import from sonic-nat.yang (#8632)
Browse files Browse the repository at this point in the history
#### Why I did it
Fixing issue [[sonic-utilities] Unit test failed when building sonic-utilities #1761](sonic-net/sonic-utilities#1761)

Importing `sonic-acl` caused getting references by `backlinks()` to break, 

#### How I did it
solution is to comment out the importing statement as it is not used anyway.

#### How to verify it
Ran sonic-utilities unit-tests locally after the fix, and all passed.
  • Loading branch information
ghooo authored Sep 1, 2021
1 parent 0ab28bf commit 3fa8c25
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/sonic-yang-models/yang-models/sonic-nat.yang
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ module sonic-nat {
prefix inet;
}

import sonic-acl {
prefix sacl;
}
// Comment sonic-acl import here until libyang back-links issue is resolved for ACL_TABLE leaf reference.
// import sonic-acl {
// prefix sacl;
// }

import sonic-types {
prefix stypes;
Expand Down

0 comments on commit 3fa8c25

Please sign in to comment.