commit | 6797df012be1909bfdc4a82522667726e1d3df8e | [log] [tgz] |
---|---|---|
author | Václav Kubernát <kubernat@cesnet.cz> | Mon Mar 18 20:21:50 2019 +0100 |
committer | Václav Kubernát <kubernat@cesnet.cz> | Tue Mar 19 12:44:31 2019 +0100 |
tree | be2aa13eecafb9ab223e8dfb243b1fac478f87e8 | |
parent | b962105d0c565ec6502e4241257e5cdf7d18576b [diff] |
Change how create/delete path argument is parsed The handler for create/delete was an inherited class from presenceContainerPathHandler class, so that the code is shared between create/delete. However, this means that it is impossible to change the grammar for create/delete to include other types of paths (because the handler was hardcoded to presence containers). This change ties the handler to the "path" rule rather than to the create/delete rule. This method is also in line with the "set" command where the path is checked in the "leafPath" rule rather than in the "set" rule. Change-Id: Ic41aa26bf4bc93f762435f43312489e10472e475
Copyright © Faculty of Information Technology, Czech Technical University in Prague, https://fit.cvut.cz/ . Copyright © CESNET, https://www.cesnet.cz/ . Most of the code was written by Václav Kubernát (FIT ČVUT) and Jan Kundrát (CESNET). The project is distributed under the terms of the Apache 2.0 license.