summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-12-31Support setting optional 'type' node in command templates other than 'txt'Christian Poessinger
2017-12-10mdns-repeater: use consistent naming of 'interface' nodeChristian Poessinger
2017-12-10mdns-repeater: priority change 999 -> 990Christian Poessinger
2017-12-09Drop call to 'service' wrapper in 'vyos-config-mdns-repeater.py'Christian Poessinger
Using 'service' as wrapper to start system services is no longer necessary, hence use the full systemd command.
2017-12-09Merge branch 'add-mdns-repeater' into currentChristian Poessinger
* add-mdns-repeater: Update 'debian/changelog' Add 'vyos-update-mdns-repeater.py' functionality Bugfix: 'multi:' statement must be on top of generated 'node.def' file Initial interface description for 'mdns repeater' Add debian packaging files to .gitignore
2017-12-09Update 'debian/changelog'Christian Poessinger
2017-12-09Add 'vyos-update-mdns-repeater.py' functionalityChristian Poessinger
2017-12-09Bugfix: 'multi:' statement must be on top of generated 'node.def' fileChristian Poessinger
If 'multi:' is not on the first line of the auto generated 'node.def' file, VyOS will throw a CLI error: get_parsed_tmpl: failed to parse tmpl [.../interfaces] DEBUG vexit_internal: get_parsed_tmpl: failed to parse tmpl [.../interfaces]
2017-12-09Initial interface description for 'mdns repeater'Christian Poessinger
2017-12-06Add debian packaging files to .gitignoreChristian Poessinger
2017-10-26Merge pull request #6 from Taniadz/currentDaniil Baturin
T433: Add "effective" observers and inSession to the vyos.config library
2017-10-26T433: Add "effective" observers and inSession to the vyos.config libraryTaniadz
2017-10-17Merge pull request #5 from Taniadz/currentDaniil Baturin
T420: Write op mode version of node.def generator
2017-10-16T420: Write op mode version of node.def generator (write test-op.xml)Taniadz
2017-10-11T413: Make a schema for op mode;Taniadz
T420: Write op mode version of node.def generator
2017-09-26[LLDP] Remove the lldp.xml interface definition to avoid template file ↵Daniil Baturin
conflicts with vyatta-lldp This commit shall be reverted once we get the script and the op mode for LLDP working.
2017-09-21T401: add functions for reading VyOS version data.Daniil Baturin
2017-09-21Add autogenerated command template files to .gitignoreDaniil Baturin
2017-09-21Merge pull request #1 from Taniadz/requestDaniil Baturin
T393: Migrate vyatta-lldpd to vyos-1x: partial implementation of the config script
2017-09-20T393: Migrate vyatta-lldpd to vyos-1xTaniadz
2017-09-16[LLDP] T393: add constraints and error messages to the LLDP interface ↵Daniil Baturin
definition.
2017-09-16T396: add support for value constraint tags to the build-command-templates ↵Daniil Baturin
script
2017-09-16Remove generated node.def's for other shared config subtrees too.Daniil Baturin
2017-09-16T395: Implement a numeric value validatorDaniil Baturin
2017-09-16T393: fix a wrong tag in the LLDP interface definition.Daniil Baturin
2017-09-15Add interface definition lldp.xmlTaniadz
2017-09-15Replace the reference to vyatta_sbindir to a reference to vyos_sbindirDaniil Baturin
2017-09-14Add an interface definition file for testing purposes.Daniil Baturin
2017-09-14T388: nicer options handling and output.Daniil Baturin
2017-09-14T392: add support for completionHelp to the interface definition converter.Daniil Baturin
2017-09-12Merge branch 'current' of github.com:vyos/vyos-1x into currentDaniil Baturin
2017-09-12T391: Add completionHelp tag support to the interface definition schema.Daniil Baturin
2017-09-12Add debug mode to the build-command-templates script with content printingTaniadz
2017-09-12Add debug mode to the build-command-templates scriptTaniadz
2017-09-08Make the makefile create the templates dir if it doesn't exist.Daniil Baturin
2017-09-08Separate VyOSError and ConfigError.Daniil Baturin
VyOSError is now only raised on improper config operations and internal errors, such as trying to use a function on a wrong kind of node. ConfigError should be used by scripts to indicate configuration mistakes and error conditions.
2017-09-08Automatically wrap all script calls in generated templates into sudo sh -cDaniil Baturin
shemminger once said we already overuse sudo and advocated using capabilities instead, but I think the union of all privilege sets needed equals the root privileges, and in practice admin level users need sudo anyway.
2017-09-08Better checks in the cron script.Daniil Baturin
Check if crontab exists before trying to delete it. Fail commit if executable is not defined in the task.
2017-09-08Rename the cron script to not mention Vyatta anymore.Daniil Baturin
2017-09-08Restructure the cron script and fix bugs.Daniil Baturin
Do not inherit from the Config class, it only made things more complicated. Remove the sys.path.append that was made necessary by using partial paths where full paths are expected. Exit with 1 (to make commit fail properly) if VyOSError is raised. Replace the OO representation of cron jobs with simple hashes: the format is not expected to grow any more complex and encapsulation will hardly be necessary (though if one can think of a good OO design for this, it's welcome). Do not mix config reading and validation to enable changing the syntax without changing any of the code but get_config()
2017-09-08Make the vyos.config.Config's return_value(s) and list_node functions behave ↵Daniil Baturin
like their Perl counterparts. Most scripts used to do something like my $foo = $config->returnValue("system foo"); if !defined($foo) { $foo = $defaultFooValue; } In most cases values do not exist because they are optional and simply not set. In a substantial minority of cases they don't exist but are mandatory, in this case it's probably a good practice to check if it exists first. In rare but frustrating cases returnValue returns undef because the path is wrong. It was tempting but as it turns out impractical to force the user to handle every undefined value as an error, but the cost of wrapping every return_value call in a try/except block is too high. Instead we should facilitate the most common case. For this, those functions now support an optional named argument default=None so an optional value with a sensible default can be handled like $foo = config.return_value("system foo", default="bar")
2017-09-08Automatically decode the output of cli-shell-api as ASCIIDaniil Baturin
to avoid having to decode it anywhere else.
2017-09-08Fix handling of tag and multi nodes in the convertor.Daniil Baturin
Ugly fixup in the makefile to delete generated node.def's that are now in other packages. Adjust the cron interface definition to better match the old templates.
2017-09-07Oops, accidentally a wrong dir for the python install path.Daniil Baturin
2017-09-07Add interface definition for cron and enable templates building in the ↵Daniil Baturin
makefiles.
2017-09-07Add support for priority tags. In 1.x, there's no way around using it.Daniil Baturin
2017-09-07Remove crude debugging stuff, I'll add a proper solution later.Daniil Baturin
2017-09-07Merge branch 'current' of https://github.com/vyos/vyos-1x into currentDaniil Baturin
2017-09-07Add a convertor from new style XML command definitions to old style templates.Daniil Baturin
2017-08-27adding validate(), generate(), apply() to vyatta-update-crontab.pyTaniadz