summaryrefslogtreecommitdiff
path: root/src/cparse
AgeCommit message (Collapse)Author
2019-05-30T1334: Migration script runner rewriteJohn Estabrook
Use vyos-1x migration script runner.
2015-10-10vyatta-cfg: double quoted config values ending in \ are not reboot safeAlex Harpin
Configurations that contain double quoted values that ended in \ were causing parse errors on load / reboot, resulting in a failure to load the config file and an empty config. This commit adds extra logic to the lex parsing of the config file to catch this particular case whilst still allowing escaped quotes in the middle of quoted values. Bug #593 http://bugzilla.vyos.net/show_bug.cgi?id=593
2012-06-05Fix memory problem on bad config fileJohn Southworth
2012-06-03Fix more load/commit memory leaksJohn Southworth
This fixes some more of the memory leaks in load and commit. Some still exist in the legacy cli_new/cli_parse code. Since that code is supposed to be rewritten such that it interfaces with the rewritten commit code in a clean way, these will not be fixed right now.
2011-05-10preliminary implementation of new commitAn-Cheng Huang
(cherry picked from commit 1b2a0fd1ae1e6dfc18e4f75f73cd7befb47cf538)
2011-04-06minor refactoringAn-Cheng Huang
2011-03-17add config path abstraction and high-level cachingAn-Cheng Huang
* part of the config backend cleanup/optimization work. * improves the performance of "load" (w/o commit) by ~55% and "show" by ~15%.
2011-03-01tweak map iterator usageAn-Cheng Huang
2011-02-18namespace reorgAn-Cheng Huang
2011-02-09fix for bug 6791An-Cheng Huang
* work around comment syntax ambiguity by ignoring comments not associated with any nodes.
2011-01-20export config output algorithms through shell APIAn-Cheng Huang
2011-01-11reset initial parser stateAn-Cheng Huang
(cherry picked from commit f780a3fe2703874219e70e7cf443846fd85e9a67)
2011-01-11tweak parser for top-level commentAn-Cheng Huang
(cherry picked from commit 7f436bd240d19bace94f102ce2f035399e48d612)
2011-01-07improve load error messageAn-Cheng Huang
(cherry picked from commit 42f2fdb35cff89debd346126eb69cd95d855ff7b)
2010-12-03change boot-time config loading to use new implementation in backend.An-Cheng Huang
* add new boot-time config loading script that uses shell API to access backend directly, bypassing wrapper. * use new loadFile implementation in the backend to perform the actual "load" operation (without "commit"). this reduces the "pre-commit" load time by ~60%.
2010-11-19remove parser debug output and move existence check.An-Cheng Huang
2010-11-15continue config file parser workAn-Cheng Huang
2010-11-12initial work to parse config file into data structure.An-Cheng Huang
2010-11-11continue config parser workAn-Cheng Huang
* add parser to package build. * add prefix, error handling, etc. * fix handling of empty and 1-char values in lex. * add API function.
2010-10-25initial lex/yacc config file parserAn-Cheng Huang