https://jira.opencord.org/browse/CORD-1174
Inclusion of generation_id validation during master/slave election.
Addressed Review comments
Change-Id: Ib9e15617fb70204d47cf5f3b06ae94fa3e0e7ea3
diff --git a/ofagent/agent.py b/ofagent/agent.py
index 354683a..55c8bfb 100644
--- a/ofagent/agent.py
+++ b/ofagent/agent.py
@@ -32,6 +32,9 @@
 
 class Agent(protocol.ClientFactory):
 
+    generation_is_defined = False
+    cached_generation_id = None
+
     def __init__(self,
                  controller_endpoint,
                  datapath_id,