]> git.proxmox.com Git - mirror_frr.git/commit - lib/northbound_cli.c
lib: copy xpaths when enqueing changes
authorEmanuele Di Pascale <emanuele@voltanet.io>
Tue, 4 Dec 2018 14:34:09 +0000 (15:34 +0100)
committerEmanuele Di Pascale <emanuele@voltanet.io>
Tue, 18 Dec 2018 14:15:26 +0000 (15:15 +0100)
commit8427e0e67445d42dbcc4d6ad8ba018865a4532f2
tree897c5819bb5700b98c04b498ec25c05fc6af05e5
parent625b70e3da7b1ec163607cc7354404904eacf36e
lib: copy xpaths when enqueing changes

Just copying th const char* of the xpath means that if we
are enqueing multiple changes from a buffer, the last xpath
addedd will overwrite all of the previous references.
Copying the xpath to a buffer simplifies the API when
retrofitting the commands.

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
lib/northbound_cli.c
lib/vty.h