aboutsummaryrefslogtreecommitdiffstats
path: root/ctrl/facemgr/src/interfaces/netlink/netlink.c
diff options
context:
space:
mode:
authorJordan Augé <jordan.auge+fdio@cisco.com>2019-12-09 01:23:37 +0100
committerJordan Augé <jordan.auge+fdio@cisco.com>2019-12-09 15:33:32 +0100
commitb0c1a5f4362a1db5621b74052eca27d3e2af1ab2 (patch)
tree9f3dc5018db1d2c4cfcb8a363cea210d6e3ff00c /ctrl/facemgr/src/interfaces/netlink/netlink.c
parentc294250cd9faccf514316f92636a1a78a35b514f (diff)
[HICN-438] facemgr should allow face creation with physical interface down
Change-Id: I9d333f2d420c735d3867c0813dc93e82aceb3861 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'ctrl/facemgr/src/interfaces/netlink/netlink.c')
-rw-r--r--ctrl/facemgr/src/interfaces/netlink/netlink.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ctrl/facemgr/src/interfaces/netlink/netlink.c b/ctrl/facemgr/src/interfaces/netlink/netlink.c
index 4d92f2511..b57a4e480 100644
--- a/ctrl/facemgr/src/interfaces/netlink/netlink.c
+++ b/ctrl/facemgr/src/interfaces/netlink/netlink.c
@@ -428,7 +428,7 @@ int nl_callback(interface_t * interface, int fd, void * unused)
DEBUG("Interface %s: address was removed", interface_name);
if (facelet) {
facelet_set_event(facelet, FACELET_EVENT_SET_DOWN);
- facelet_set_status(facelet, FACELET_STATUS_CLEAN);
+ facelet_set_attr_clean(facelet);
interface_raise_event(interface, facelet);
}
break;
@@ -450,7 +450,7 @@ int nl_callback(interface_t * interface, int fd, void * unused)
if (facelet) {
facelet_set_event(facelet, FACELET_EVENT_UPDATE);
- facelet_set_status(facelet, FACELET_STATUS_CLEAN);
+ facelet_set_attr_clean(facelet);
interface_raise_event(interface, facelet);
}
break;
@@ -474,7 +474,7 @@ int nl_callback(interface_t * interface, int fd, void * unused)
break;
facelet_set_event(facelet, FACELET_EVENT_DELETE);
- facelet_set_status(facelet, FACELET_STATUS_CLEAN);
+ facelet_set_attr_clean(facelet);
interface_raise_event(interface, facelet);
break;
@@ -505,7 +505,7 @@ int nl_callback(interface_t * interface, int fd, void * unused)
if (up && running) {
facelet_set_event(facelet, FACELET_EVENT_CREATE);
//facelet_set_family(facelet, AF_INET);
- facelet_set_status(facelet, FACELET_STATUS_CLEAN);
+ facelet_set_attr_clean(facelet);
interface_raise_event(interface, facelet);
#if 0
@@ -520,7 +520,7 @@ int nl_callback(interface_t * interface, int fd, void * unused)
} else {
#if 1
facelet_set_event(facelet, FACELET_EVENT_SET_DOWN);
- facelet_set_status(facelet, FACELET_STATUS_CLEAN);
+ facelet_set_attr_clean(facelet);
interface_raise_event(interface, facelet);
#else
facelet_free(facelet);