Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tools/pyang/import_yang.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ def __init__(self, files, options):
ctx.keep_comments = options.keep_comments

excludes = [f.stem for f in options.to_dir.glob("*.yang")]
# Exclude common yang-models since they are already included in sonic-mgmt-common
excludes += [f.stem for f in options.to_dir.glob("common/*.yang")]
if options.exclude:
excludes += [f.stem for f in options.exclude]

Expand Down