summaryrefslogtreecommitdiffstats
path: root/ctrl/facemgr/src/facelet.c
diff options
context:
space:
mode:
authorJordan Augé <jordan.auge+fdio@cisco.com>2019-12-11 15:08:48 +0100
committerJordan Augé <jordan.auge+fdio@cisco.com>2019-12-11 15:08:48 +0100
commitba89f69b00b052298c8689c4f0d62b4429f96516 (patch)
tree58532131bd779404e1ec57ae7bd6949b23b37401 /ctrl/facemgr/src/facelet.c
parent2f8f60f943b71e1caab14856c6a03c81e5ba6c9c (diff)
[HICN-446] Face manager incorrectly sets up static routes in case of multihoming during startup
Change-Id: Iee01146d3d9437f0267cfac3de793608cccca5bc Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'ctrl/facemgr/src/facelet.c')
-rw-r--r--ctrl/facemgr/src/facelet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ctrl/facemgr/src/facelet.c b/ctrl/facemgr/src/facelet.c
index ac84f5f70..d33455b4d 100644
--- a/ctrl/facemgr/src/facelet.c
+++ b/ctrl/facemgr/src/facelet.c
@@ -198,6 +198,8 @@ facelet_validate_face(const facelet_t * facelet)
if (!facelet_has_remote_addr(facelet))
return false;
case FACE_TYPE_LAYER_3:
+ if (!facelet_has_local_port(facelet))
+ return false;
if (!facelet_has_local_addr(facelet))
return false;
if (!facelet_has_netdevice(facelet))