Call ys_populate_feature from if_feature_check
In some cases, the feature won't be populated yet, and therefore, we will consider this feature as disabled. Fixes #429
This commit is contained in:
parent
8732d118dd
commit
b13917b2ac
6 changed files with 15 additions and 5 deletions
|
|
@ -2610,7 +2610,7 @@ if_feature(yang_stmt *yspec,
|
|||
* @param[in] ys Feature yang statement to populate.
|
||||
* Bootstrapping: A feature is enabled if found in clixon-config
|
||||
*/
|
||||
static int
|
||||
int
|
||||
ys_populate_feature(clicon_handle h,
|
||||
yang_stmt *ys)
|
||||
{
|
||||
|
|
@ -2947,7 +2947,7 @@ yang_features(clicon_handle h,
|
|||
if ((ymod = ys_module(ys)) != NULL)
|
||||
mainfile = yang_filename_get(ymod);
|
||||
ret = 0;
|
||||
if (yang_subparse(yang_argument_get(ys), ys, YA_IF_FEATURE, mainfile, 1, &ret) < 0)
|
||||
if (yang_subparse(yang_argument_get(ys), ys, YA_IF_FEATURE, mainfile, 1, &ret, h) < 0)
|
||||
goto done;
|
||||
clicon_debug(CLIXON_DBG_DETAIL, "%s %s %d", __FUNCTION__, yang_argument_get(ys), ret);
|
||||
if (ret == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue