Paramaterized the Patricia Trie
diff --git a/src/main/java/net/onrc/onos/ofcontroller/bgproute/BgpRoute.java b/src/main/java/net/onrc/onos/ofcontroller/bgproute/BgpRoute.java
index c36d4a5..827c8d2 100644
--- a/src/main/java/net/onrc/onos/ofcontroller/bgproute/BgpRoute.java
+++ b/src/main/java/net/onrc/onos/ofcontroller/bgproute/BgpRoute.java
@@ -88,7 +88,7 @@
protected ProxyArpManager proxyArp;
//protected static Ptree ptree;
- protected IPatriciaTrie ptree;
+ protected IPatriciaTrie<RibEntry> ptree;
protected BlockingQueue<RibUpdate> ribUpdates;
protected String bgpdRestIp;
@@ -253,7 +253,7 @@
throws FloodlightModuleException {
//ptree = new Ptree(32);
- ptree = new PatriciaTrie(32);
+ ptree = new PatriciaTrie<RibEntry>(32);
ribUpdates = new LinkedBlockingQueue<RibUpdate>();
@@ -314,14 +314,14 @@
}
//public Ptree getPtree() {
- public IPatriciaTrie getPtree() {
+ public IPatriciaTrie<RibEntry> getPtree() {
return ptree;
}
public void clearPtree() {
//ptree = null;
//ptree = new Ptree(32);
- ptree = new PatriciaTrie(32);
+ ptree = new PatriciaTrie<RibEntry>(32);
}
public String getBGPdRestIp() {