SubnetRoute enhancements to VPN Service models
[vpnservice.git] / bgpmanager / bgpmanager-impl / src / main / java / org / opendaylight / bgpmanager / BgpManager.java
index 909b82a89d28cd5168c082042ebf369cad240039..6e9a1a5b2eee44a0f4c491dbcb73989533c6f520 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
+ * Copyright (c) 2015 - 2016 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -139,6 +139,16 @@ public class BgpManager implements BindingAwareProvider, AutoCloseable, IBgpMana
       bcm.delPrefix(rd, prefix);
     }
 
+    @Override
+    public void advertisePrefix(String rd, String prefix, String nextHop, int vpnLabel) throws Exception {
+        bcm.addPrefix(rd, prefix, nextHop, vpnLabel);
+    }
+
+    @Override
+    public void withdrawPrefix(String rd, String prefix) throws Exception {
+        bcm.delPrefix(rd, prefix);
+    }
+
     public void setQbgpLog(String fileName, String debugLevel) throws Exception {
       bcm.addLogging(fileName, debugLevel);
     }