summaryrefslogtreecommitdiffhomepage
path: root/server/grpc_server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/grpc_server.go')
-rw-r--r--server/grpc_server.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/grpc_server.go b/server/grpc_server.go
index 25af6dc7..1e81e3ce 100644
--- a/server/grpc_server.go
+++ b/server/grpc_server.go
@@ -89,6 +89,10 @@ func convertAf2Rf(af *api.AddressFamily) (bgp.RouteFamily, error) {
return bgp.RF_IPv4_UC, nil
} else if af.Equal(api.AF_IPV6_UC) {
return bgp.RF_IPv6_UC, nil
+ } else if af.Equal(api.AF_IPV4_VPN) {
+ return bgp.RF_IPv4_VPN, nil
+ } else if af.Equal(api.AF_IPV6_VPN) {
+ return bgp.RF_IPv6_VPN, nil
} else if af.Equal(api.AF_EVPN) {
return bgp.RF_EVPN, nil
} else if af.Equal(api.AF_ENCAP) {