summaryrefslogtreecommitdiff
path: root/staticd/static_nb_config.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-08-16 15:38:57 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-08-31 17:58:30 +0300
commit9ccaa12da64b0f94bc39f974485c2760e994874f (patch)
tree254cac53aed73ae20ce7ea963e262983a05f67d6 /staticd/static_nb_config.c
parent7a41218be4a5404ae9949bfef6a4630512a8af49 (diff)
staticd: convert typedef to enum
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'staticd/static_nb_config.c')
-rw-r--r--staticd/static_nb_config.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/staticd/static_nb_config.c b/staticd/static_nb_config.c
index deeca97b0e..470c7bdad5 100644
--- a/staticd/static_nb_config.c
+++ b/staticd/static_nb_config.c
@@ -122,7 +122,7 @@ struct nexthop_iter {
static int nexthop_iter_cb(const struct lyd_node *dnode, void *arg)
{
struct nexthop_iter *iter = arg;
- int nh_type;
+ enum static_nh_type nh_type;
nh_type = yang_dnode_get_enum(dnode, "./nh-type");
@@ -141,7 +141,7 @@ static bool static_nexthop_create(struct nb_cb_create_args *args)
struct static_path *pn;
struct ipaddr ipaddr;
struct static_nexthop *nh;
- int nh_type;
+ enum static_nh_type nh_type;
const char *ifname;
const char *nh_vrf;
@@ -304,7 +304,7 @@ static int static_nexthop_mpls_label_modify(struct nb_cb_modify_args *args)
static int static_nexthop_onlink_modify(struct nb_cb_modify_args *args)
{
struct static_nexthop *nh;
- static_types nh_type;
+ enum static_nh_type nh_type;
switch (args->event) {
case NB_EV_VALIDATE:
@@ -352,7 +352,7 @@ static int static_nexthop_color_destroy(struct nb_cb_destroy_args *args)
static int static_nexthop_bh_type_modify(struct nb_cb_modify_args *args)
{
struct static_nexthop *nh;
- static_types nh_type;
+ enum static_nh_type nh_type;
switch (args->event) {
case NB_EV_VALIDATE: