]>
git.proxmox.com Git - mirror_frr.git/blob - lib/mlag.c
2 * Copyright (C) 2018 Cumulus Networks, Inc.
5 * This file is part of FRR.
7 * FRR is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2, or (at your option) any
12 * FRR is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with FRR; see the file COPYING. If not, write to the Free
19 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
26 char *mlag_role2str(enum mlag_role role
, char *buf
, size_t size
)
30 snprintf(buf
, size
, "NONE");
32 case MLAG_ROLE_PRIMARY
:
33 snprintf(buf
, size
, "PRIMARY");
35 case MLAG_ROLE_SECONDARY
:
36 snprintf(buf
, size
, "SECONDARY");