Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

0

atomic variable across cluster

asked 2014-11-29 09:50:27 -0700

anonymous user

Anonymous

I have a counter that needs to be incremented. Each cluster member may increment it. How to implement the atomic operation of the variable across cluster?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-02-02 18:07:47 -0700

tbachman gravatar image

In order to for state to have cluster-wide visibility, it has to be part of a datastore. You're probably interested in using an operational data store for this, which means you'll want to define that state with a yang model and use yangtools to generate the associated java classes needed to implement this state.

edit flag offensive delete publish link more
Login/Signup to Answer

Stats

Asked: 2014-11-29 09:50:27 -0700

Seen: 141 times

Last updated: Feb 02 '15