Open
Description
I found this issue while trying to change the configuration of an existing GRE(or any other kind) tunnel using pyroute2 version 0.6.5
Exception
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/snap/iotr-cr-sysmgr/x2/lib/python3.8/site-packages/pr2modules/ndb/auth_manager.py", line 69, in guard
return f(obj, *argv, **kwarg)
File "/snap/iotr-cr-sysmgr/x2/lib/python3.8/site-packages/pr2modules/ndb/objects/__init__.py", line 676, in commit
self.apply()
File "/snap/iotr-cr-sysmgr/x2/lib/python3.8/site-packages/pr2modules/ndb/auth_manager.py", line 69, in guard
return f(obj, *argv, **kwarg)
File "/snap/iotr-cr-sysmgr/x2/lib/python3.8/site-packages/pr2modules/ndb/objects/interface.py", line 702, in apply
super(Interface, self).apply(rollback, req_filter)
File "/snap/iotr-cr-sysmgr/x2/lib/python3.8/site-packages/pr2modules/ndb/auth_manager.py", line 69, in guard
return f(obj, *argv, **kwarg)
File "/snap/iotr-cr-sysmgr/x2/lib/python3.8/site-packages/pr2modules/ndb/objects/__init__.py", line 892, in apply
raise Exception('lost sync in apply()')
Exception: lost sync in apply()
Steps to reproduce
- Create a GRE tunnel
ip.link("add", ifname="testtun", kind="gre", gre_local="10.10.10.2", gre_remote="10.10.100.3", gre_ttl=254)
- Try to change it with NDB
ndb.interfaces["testtun"].set("gre_local", "10.10.10.3").commit()
Notes
I also tried to change the tunnel using these commands but they didn't work(didn't throw an exception but value was not changed):
ip.link("update", index=31, IFLA_GRE_LOCAL="10.10.10.3")
ip.link("set", index=31, IFLA_GRE_LOCAL="10.10.10.3")
Activity