From 3fa8c2595f875666c6fc0d1b84f6fd4082d1b447 Mon Sep 17 00:00:00 2001 From: Mohamed Ghoneim Date: Wed, 1 Sep 2021 07:29:17 -0700 Subject: [PATCH] [yang-models] Removing sonic-acl import from sonic-nat.yang (#8632) #### Why I did it Fixing issue [[sonic-utilities] Unit test failed when building sonic-utilities #1761](https://github.com/Azure/sonic-utilities/issues/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. --- src/sonic-yang-models/yang-models/sonic-nat.yang | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sonic-yang-models/yang-models/sonic-nat.yang b/src/sonic-yang-models/yang-models/sonic-nat.yang index 03e12c2301a3..d01a1a9617f4 100644 --- a/src/sonic-yang-models/yang-models/sonic-nat.yang +++ b/src/sonic-yang-models/yang-models/sonic-nat.yang @@ -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;