Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixes for 'make UNATTENDED=yes CC=clang CXX=clang verify'
[vpp.git]
/
src
/
vpp-api
/
vom
/
l3_binding.cpp
diff --git
a/src/vpp-api/vom/l3_binding.cpp
b/src/vpp-api/vom/l3_binding.cpp
index
be7c9d1
..
13bc1ff
100644
(file)
--- a/
src/vpp-api/vom/l3_binding.cpp
+++ b/
src/vpp-api/vom/l3_binding.cpp
@@
-15,6
+15,7
@@
#include "vom/l3_binding.hpp"
#include "vom/l3_binding_cmds.hpp"
#include "vom/l3_binding.hpp"
#include "vom/l3_binding_cmds.hpp"
+#include "vom/singular_db_funcs.hpp"
namespace VOM {
singular_db<l3_binding::key_t, l3_binding> l3_binding::m_db;
namespace VOM {
singular_db<l3_binding::key_t, l3_binding> l3_binding::m_db;
@@
-92,13
+93,13
@@
l3_binding::itf() const
l3_binding::const_iterator_t
l3_binding::cbegin()
{
l3_binding::const_iterator_t
l3_binding::cbegin()
{
- return m_db.
c
begin();
+ return m_db.begin();
}
l3_binding::const_iterator_t
l3_binding::cend()
{
}
l3_binding::const_iterator_t
l3_binding::cend()
{
- return m_db.
c
end();
+ return m_db.end();
}
std::string
}
std::string
@@
-146,7
+147,7
@@
l3_binding::singular() const
void
l3_binding::dump(std::ostream& os)
{
void
l3_binding::dump(std::ostream& os)
{
-
m_db.dump(
os);
+
db_dump(m_db,
os);
}
std::ostream&
}
std::ostream&
@@
-167,13
+168,13
@@
l3_binding::find(const interface& i)
*/
std::deque<std::shared_ptr<l3_binding>> l3s;
*/
std::deque<std::shared_ptr<l3_binding>> l3s;
- auto it = m_db.
c
begin();
+ auto it = m_db.begin();
- while (it != m_db.
c
end()) {
+ while (it != m_db.end()) {
/*
/*
- * The key in the DB is a pair of the interface's name and prefix.
- * If the keys match, save the L3-config
- */
+
* The key in the DB is a pair of the interface's name and prefix.
+
* If the keys match, save the L3-config
+
*/
auto key = it->first;
if (i.key() == key.first) {
auto key = it->first;
if (i.key() == key.first) {
@@
-202,8
+203,8
@@
void
l3_binding::event_handler::handle_populate(const client_db::key_t& key)
{
/**
l3_binding::event_handler::handle_populate(const client_db::key_t& key)
{
/**
- * This is done while populating the interfaces
- */
+
* This is done while populating the interfaces
+
*/
}
dependency_t
}
dependency_t
@@
-215,7
+216,7
@@
l3_binding::event_handler::order() const
void
l3_binding::event_handler::show(std::ostream& os)
{
void
l3_binding::event_handler::show(std::ostream& os)
{
-
m_db.dump(
os);
+
db_dump(m_db,
os);
}
}
}
}