Skip to content

Commit

Permalink
automatic commit at releng box
Browse files Browse the repository at this point in the history
  • Loading branch information
mc36 committed Feb 3, 2023
1 parent bd45d0a commit b604046
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/net/freertr/user/userNetconf.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ public class userNetconf {
/**
* get-config
*/
public final static String getConfig = "/?xml/rpc/get-config/filter/config";
public final static String getCfgFlt = "/?xml/rpc/get-config/filter/config";

/**
* get-config
*/
public final static String getCfgFul = "/?xml/rpc/get-config/source/running";

/**
* edit-config
Expand Down Expand Up @@ -273,10 +278,17 @@ public encXml doRequest(encXml req) {
rep.data.add(new encXmlEntry(null, "/rpc-reply", "", ""));
continue;
}
if (a.startsWith(getConfig)) {
if (a.startsWith(getCfgFul)) {
List<String> cfg = cfgAll.getShRun(0);
List<userFilter> sec = userFilter.text2section(cfg);
userFilter.section2xml(rep, "/rpc-reply/data/config", sec);
rep.data.add(new encXmlEntry(null, "/rpc-reply", "", ""));
continue;
}
if (a.startsWith(getCfgFlt)) {
List<String> cfg = cfgAll.getShRun(0);
List<userFilter> sec = userFilter.text2section(cfg);
n = a.substring(getConfig.length(), a.length());
n = a.substring(getCfgFlt.length(), a.length());
List<userFilter> res = new ArrayList<userFilter>();
for (; n.length() > 0;) {
a = encXml.unescId(n).replaceAll("/", " ");
Expand Down

0 comments on commit b604046

Please sign in to comment.