REGRESSION netopeergui generates bad edit-config
attribute of tagged elements remains in edit-config
diff --git a/src/mod_netconf.c b/src/mod_netconf.c
index 7a71e17..9148fae 100644
--- a/src/mod_netconf.c
+++ b/src/mod_netconf.c
@@ -691,7 +691,11 @@
}
/* tell server to show all elements even if they have default values */
+#ifdef HAVE_WITHDEFAULTS_TAGGED
if (nc_rpc_capability_attr(rpc, NC_CAP_ATTR_WITHDEFAULTS_MODE, NCWD_MODE_ALL_TAGGED)) {
+#else
+ if (nc_rpc_capability_attr(rpc, NC_CAP_ATTR_WITHDEFAULTS_MODE, NCWD_MODE_ALL)) {
+#endif
DEBUG("mod_netconf: setting withdefaults failed");
}