fib: add EndpointId field in NextHop record
refs: #4284
Change-Id: If0cfc21cfa81d6fa3c1590ecdce8fbbc1ea95e13
diff --git a/daemon/table/fib-nexthop.hpp b/daemon/table/fib-nexthop.hpp
index 83b774f..313508d 100644
--- a/daemon/table/fib-nexthop.hpp
+++ b/daemon/table/fib-nexthop.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
- * Copyright (c) 2014-2016, Regents of the University of California,
+/*
+ * Copyright (c) 2014-2019, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -39,7 +39,7 @@
{
public:
explicit
- NextHop(Face& face);
+ NextHop(Face& face, uint64_t endpointId);
Face&
getFace() const
@@ -48,6 +48,12 @@
}
uint64_t
+ getEndpointId() const
+ {
+ return m_endpointId;
+ }
+
+ uint64_t
getCost() const
{
return m_cost;
@@ -61,6 +67,7 @@
private:
Face* m_face;
+ uint64_t m_endpointId;
uint64_t m_cost;
};