Fix the get_network_id() function to always return a value
Change-Id: Ib939db8dd2c7800470b879b1534e7a863b46a697
This commit is contained in:
parent
f7dc203844
commit
5038b7c007
@ -249,6 +249,7 @@ class DfLocalController(object):
|
|||||||
self.next_network_id += 1
|
self.next_network_id += 1
|
||||||
# TODO(gsagie) verify self.next_network_id didnt wrap
|
# TODO(gsagie) verify self.next_network_id didnt wrap
|
||||||
self.db_store.set_network_id(logical_dp_id, self.next_network_id)
|
self.db_store.set_network_id(logical_dp_id, self.next_network_id)
|
||||||
|
return self.next_network_id
|
||||||
|
|
||||||
def read_routers(self):
|
def read_routers(self):
|
||||||
for lrouter in self.nb_api.get_routers():
|
for lrouter in self.nb_api.get_routers():
|
||||||
|
Loading…
Reference in New Issue
Block a user