Vrf and AS num corrections
[netvirt.git] / bgpmanager / impl / src / main / java / org / opendaylight / netvirt / bgpmanager / ConfigureBgpCli.java
index 2929e28e3d8b4bd88d9cb87518cb44c4ac53c306..225babc7dfdc1190b521602992940ffb5703b60c 100644 (file)
@@ -47,7 +47,7 @@ public class ConfigureBgpCli extends OsgiCommandSupport {
     String md5passwordOption = null;
 
     @Option(name = "--address-family", description = "address family of the bgp neighbor "
-            + "SAFI_IPV4_LABELED_UNICAST|SAFI_MPLS_VPN",
+            + "lu|evpn|vpnv4|vpnv6",
             required = false, multiValued = false)
     String addressFamily = null;
 
@@ -284,7 +284,7 @@ public class ConfigureBgpCli extends OsgiCommandSupport {
                 return;
             }
         }
-        bgpConfigurationManager.startBgp(Integer.parseInt(asNumber), routerId,
+        bgpConfigurationManager.startBgp(Long.parseLong(asNumber), routerId,
                 stalePathTime == null ? 0 : Integer.parseInt(stalePathTime), false);
     }