-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for features not loading when defined within submodules that augm…
…ents external module element
- Loading branch information
Showing
5 changed files
with
105 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module feature-submodule-main { | ||
namespace "test:feature-submodule-main"; | ||
prefix fsm; | ||
|
||
include feature-submodule-sub; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module feature-submodule-mod { | ||
namespace "test:feature-submodule-mod"; | ||
prefix fsmod; | ||
|
||
container mod-container { | ||
description "Top-level container defined in a module"; | ||
|
||
leaf leaf1 { | ||
description "Leaf of external module"; | ||
type string; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
submodule feature-submodule-sub { | ||
belongs-to feature-submodule-main { | ||
prefix fsm; | ||
} | ||
|
||
import feature-submodule-mod { | ||
prefix fsmod; | ||
} | ||
|
||
feature test-submodule-feature { | ||
description | ||
"Submodule feature used for tests."; | ||
} | ||
|
||
augment "/fsmod:mod-container" { | ||
leaf augmented-data-val { | ||
if-feature test-submodule-feature; | ||
type string; | ||
description | ||
"Test data for feature dependent leaf."; | ||
} | ||
} | ||
} |