Re: Some questions about deleting data by alto-manager


Y. Richard Yang
 

Hi Xin,

Good discussion. Suppose the admin issues alto:delete (btw, I found the verb destroy too violent, so I, as you, will use delete). I assume that then the network will disappear. This means that it should not appear either in northbound or restconf (deleted from data store). Following the principle of minimal amount of work, then your bundle should deregister from all events and stop running. We do not have a restart command yet---we have not designed the whole life cycle thing yet. So the state machine, at this point is:

event: feature:install -> state: running
event: alto:delete hostrackermap -> state: stopped

There is no transition to resurrect it, unless we want to conduct a more complete lifecycle design. 

The outcome of the admin issues feature:install again at the stopped state is not defined.

Agree?

Richard

On Wed, Apr 15, 2015 at 11:15 AM, wangxin <xinwang2014@...> wrote:
Hi Richard,

I didn’t understand if alto-manager deletes alto-hosttracker-generated data (i think delete is only action it can do), how alto-hosttracker reacts?

  1. it stops listening to l2switch and waits for alto-manager’s next command (like restart)?
  2. it continues listening to l2switch and just adds new data to data store? (it’s like option 1’s restart, but it keeps history data about existing hosts)
  3. some other choices?

Thanks,
Xin

Join z.archive.alto-dev@lists.opendaylight.org to automatically receive all group messages.