RFC6022 montoring fix: submodules should report main module's namespace
This commit is contained in:
parent
29eb22d47c
commit
7e92f67f4f
2 changed files with 22 additions and 6 deletions
|
|
@ -94,9 +94,7 @@ yang_modules(clicon_handle h,
|
|||
}
|
||||
cprintf(cb, "</version>");
|
||||
cprintf(cb, "<format>yang</format>");
|
||||
if ((y1 = yang_find(ym, Y_NAMESPACE, NULL)) != NULL){
|
||||
cprintf(cb, "<namespace>%s</namespace>", yang_argument_get(y1));
|
||||
}
|
||||
cprintf(cb, "<namespace>%s</namespace>", yang_find_mynamespace(ym));
|
||||
/* A local implementation may have other locations, how to configure? */
|
||||
cprintf(cb, "<location>NETCONF</location>");
|
||||
if ((dir = clicon_option_str(h,"CLICON_NETCONF_MONITORING_LOCATION")) != NULL){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue