Hi,
Am Di., 19. Mai 2020 um 09:35 Uhr schrieb Gris Ge <fge(a)redhat.com>:
The varlink interface does not have to compile with existing schema.
You can convert all hyphen to underscore in varlink interface
what is the schema you want to do define in varlink? In my
proof-of-concept it was:
interface io.nmstate
method Set(state: object) -> (state: object)
method Get() -> (state: object)
This should make it work with Nmstate using dashes in the state. It
seems that you are going to define the details for the state in
varlink as well. If this is causing too much trouble, just define the
state as object. This will also simplify it when new items are added
to the Nmstate state schema. I guess the Set should be improved to
also accept other options regarding checkpoints and return the
checkpoint and the methods for checkpoint handling need to be added.
Also the errors should be mentioned.
What do you think?
Thanks
Till
--
Till Maas
He/His/Him
Associate Manager, Software Engineering
NetworkManager, Nmstate, Ansible RHEL Networking System Role
Red Hat GmbH,
http://www.de.redhat.com/, Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Laurie Krebs, Michael O'Neill,
Thomas Savage