summaryrefslogtreecommitdiff
path: root/lib/prefix.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-05-12 09:21:34 -0300
committerRenato Westphal <renato@opensourcerouting.org>2017-05-12 11:46:26 -0300
commit5143a87b92fc635b05586d4a95a6e22e2cbfc397 (patch)
treec3f3a2540a195064e87698760c84bf7a148597cf /lib/prefix.c
parent83540e9861b033d971af7e8da359289dbe25384d (diff)
lib: add labeled-unicast in safi2str()
While here, move SAFI_ENCAP above SAFI_MPLS_VPN to keep the ordering consistent. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/prefix.c')
-rw-r--r--lib/prefix.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/prefix.c b/lib/prefix.c
index 0cc759bb7c..28af2833e0 100644
--- a/lib/prefix.c
+++ b/lib/prefix.c
@@ -252,12 +252,14 @@ safi2str(safi_t safi)
return "unicast";
case SAFI_MULTICAST:
return "multicast";
- case SAFI_ENCAP:
- return "encap";
case SAFI_MPLS_VPN:
return "vpn";
+ case SAFI_ENCAP:
+ return "encap";
case SAFI_EVPN:
return "evpn";
+ case SAFI_LABELED_UNICAST:
+ return "labeled-unicast";
}
return NULL;
}