This commit made a small refactor in the save_metadata_on_store method and the _restore_status, making the interface metadata persistent. Solving a bug to save the interface metadata in the NApp storehouse.
Main change:
Added call to the update_instance method in restore_status_method, this allows update the interface instance with saved metadata.
Refactoring in the save_metadata_on_store method.
How test these changes:
Run kytos (kytosd -f).
Start a network topology (e.g , mn - linear top, 3 --controller = remote, ip = 127.0.0.1, port = 6653)
Add metadata to the interface:
POST http://0.0.0.0:8181/api/kytos/topology/v3/interfaces/<interface_id>/metadata
This commit made a small refactor in the
save_metadata_on_store
method and the_restore_status
, making the interface metadata persistent. Solving a bug to save the interface metadata in the NApp storehouse.Main change:
update_instance
method inrestore_status_method
, this allows update the interface instance with saved metadata.save_metadata_on_store
method.How test these changes:
kytosd -f
).mn - linear top, 3 --controller = remote, ip = 127.0.0.1, port = 6653
)POST http://0.0.0.0:8181/api/kytos/topology/v3/interfaces/<interface_id>/metadata
{ 'test':'metadata'}
exit
)Fix: #129