Open oicnysa opened 3 years ago
It should be possible. I tried it with ETCD kvdb (i have no redis setup) and agentctl (GRPC communication with VPP-Agent).
After VPP-Agent start i created interface using agentctl: agentctl config update /tmp/agentctl-update-input.txt
agentctl-update-input.txt:
netallocConfig: {}
linuxConfig: {}
vppConfig:
interfaces:
- name: loop-test-from-etcd
type: SOFTWARE_LOOPBACK
enabled: true
ipAddresses:
- 10.10.1.3/24
mtu: 1500
Then i updated it successfully (checked new IP address inside VPP using vppctl) with data insertion into ETCD: docker exec -it etcd /usr/local/bin/etcdctl put /vnf-agent/vpp1/config/vpp/v2/interfaces/loop-test-from-etcd '{"name":"loop-test-from-etcd","type":"SOFTWARE_LOOPBACK","enabled":true,"ip_addresses":["10.10.1.2/24"], "mtu":1500}'
@fgschwan thanks. Currently trying update through custom app that uses grpc, but etcd database is update only with status info.
Hi, Is there a possibility, to sync configuration with kvdb(put configuration in redis) after vpp-agent configuration was updated through grpc source? I've tried this approach and no luck, so I'm wondering, if this even possible. Thanks in advance.