Interface IBgpManager

  • All Known Implementing Classes:
    BgpManager

    public interface IBgpManager
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addPrefix​(java.lang.String rd, java.lang.String macAddress, java.lang.String prefix, java.lang.String nextHop, VrfEntryBase.EncapType encapType, org.opendaylight.yangtools.yang.common.Uint32 vpnLabel, org.opendaylight.yangtools.yang.common.Uint32 l3vni, java.lang.String gatewayMac, RouteOrigin origin)
      Adds a route in a BGP neighbour.
      void addPrefix​(java.lang.String rd, java.lang.String macAddress, java.lang.String prefix, java.util.List<java.lang.String> nextHopList, VrfEntryBase.EncapType encapType, org.opendaylight.yangtools.yang.common.Uint32 vpnLabel, org.opendaylight.yangtools.yang.common.Uint32 l3vni, java.lang.String gatewayMac, RouteOrigin origin)
      Adds one or more routes, as many as nexthops provided, in a BGP neighbour.
      void addVrf​(java.lang.String rd, java.util.Collection<java.lang.String> importRts, java.util.Collection<java.lang.String> exportRts, AddressFamily addressFamily)
      Create one VPN Context per address-family.
      void advertisePrefix​(java.lang.String rd, java.lang.String macAddress, java.lang.String prefix, java.lang.String nextHop, VrfEntryBase.EncapType encapType, org.opendaylight.yangtools.yang.common.Uint32 vpnLabel, org.opendaylight.yangtools.yang.common.Uint32 l3vni, org.opendaylight.yangtools.yang.common.Uint32 l2vni, java.lang.String gatewayMac)
      Advertises a Prefix to a BGP neighbour.
      void advertisePrefix​(java.lang.String rd, java.lang.String macAddress, java.lang.String prefix, java.util.List<java.lang.String> nextHopList, VrfEntryBase.EncapType encapType, org.opendaylight.yangtools.yang.common.Uint32 vpnLabel, org.opendaylight.yangtools.yang.common.Uint32 l3vni, org.opendaylight.yangtools.yang.common.Uint32 l2vni, java.lang.String gatewayMac)
      Advertises a Prefix to a BGP neighbour, using several nexthops.
      void bgpRestarted()  
      void deletePrefix​(java.lang.String rd, java.lang.String prefix)  
      void deleteVrf​(java.lang.String rd, boolean removeFibTable, AddressFamily addressFamily)
      Delete onv VPN table.
      java.lang.String getDCGwIP()  
      void sendNotificationEvent​(int code, int subcode)  
      void setQbgpLog​(java.lang.String fileName, java.lang.String logLevel)  
      void setQbgprestartTS​(long qbgprestartTS)  
      void withdrawPrefix​(java.lang.String rd, java.lang.String prefix)  
      void withdrawPrefixIfPresent​(java.lang.String rd, java.lang.String prefix)  
    • Method Detail

      • addVrf

        void addVrf​(java.lang.String rd,
                    java.util.Collection<java.lang.String> importRts,
                    java.util.Collection<java.lang.String> exportRts,
                    AddressFamily addressFamily)
        Create one VPN Context per address-family. VPN contexts apply to MPLS or VXLAN overlays. Passing IPv4 or IPv6 will create VPN context for MPLS, with IPv4 or IPv6 (or both) If L2VPN is passed as parameter, then IPv4 EVPN will be set too.
        Parameters:
        rd - is the route distinguisher to used for this vrf for the VPN.
        importRts - the import rd(s) for this vrf
        exportRts - the export rd(s) for this vrf
        addressFamily - is used to pass the nature of the VPN context : IPv4, IPv6, or EVPN.
      • deleteVrf

        void deleteVrf​(java.lang.String rd,
                       boolean removeFibTable,
                       AddressFamily addressFamily)
        Delete onv VPN table. VPN contexts apply to MPLS or VXLAN overlays. Passing IPv4 or IPv6 will unset VPN context for MPLS, with IPv4 or IPv6 (or both) If L2VPN is passed as parameter, then IPv4 EVPN will be unset too.
        Parameters:
        rd - the route distinguisher to define the vrf to delete
        removeFibTable - true to remove to fib table
        addressFamily - is used to pass the nature of the VPN context : IPv4, IPv6, or EVPN.
      • addPrefix

        void addPrefix​(java.lang.String rd,
                       java.lang.String macAddress,
                       java.lang.String prefix,
                       java.util.List<java.lang.String> nextHopList,
                       VrfEntryBase.EncapType encapType,
                       org.opendaylight.yangtools.yang.common.Uint32 vpnLabel,
                       org.opendaylight.yangtools.yang.common.Uint32 l3vni,
                       java.lang.String gatewayMac,
                       RouteOrigin origin)
        Adds one or more routes, as many as nexthops provided, in a BGP neighbour. It persists VrfEntry in datastore and sends the BGP message.
      • addPrefix

        void addPrefix​(java.lang.String rd,
                       java.lang.String macAddress,
                       java.lang.String prefix,
                       java.lang.String nextHop,
                       VrfEntryBase.EncapType encapType,
                       org.opendaylight.yangtools.yang.common.Uint32 vpnLabel,
                       org.opendaylight.yangtools.yang.common.Uint32 l3vni,
                       java.lang.String gatewayMac,
                       RouteOrigin origin)
        Adds a route in a BGP neighbour. It persists the VrfEntry in Datastore and sends the BGP message.
      • deletePrefix

        void deletePrefix​(java.lang.String rd,
                          java.lang.String prefix)
      • setQbgpLog

        void setQbgpLog​(java.lang.String fileName,
                        java.lang.String logLevel)
      • advertisePrefix

        void advertisePrefix​(java.lang.String rd,
                             java.lang.String macAddress,
                             java.lang.String prefix,
                             java.util.List<java.lang.String> nextHopList,
                             VrfEntryBase.EncapType encapType,
                             org.opendaylight.yangtools.yang.common.Uint32 vpnLabel,
                             org.opendaylight.yangtools.yang.common.Uint32 l3vni,
                             org.opendaylight.yangtools.yang.common.Uint32 l2vni,
                             java.lang.String gatewayMac)
                      throws java.lang.Exception
        Advertises a Prefix to a BGP neighbour, using several nexthops. Only sends the BGP messages, no writing to MD-SAL.
        Throws:
        java.lang.Exception
      • advertisePrefix

        void advertisePrefix​(java.lang.String rd,
                             java.lang.String macAddress,
                             java.lang.String prefix,
                             java.lang.String nextHop,
                             VrfEntryBase.EncapType encapType,
                             org.opendaylight.yangtools.yang.common.Uint32 vpnLabel,
                             org.opendaylight.yangtools.yang.common.Uint32 l3vni,
                             org.opendaylight.yangtools.yang.common.Uint32 l2vni,
                             java.lang.String gatewayMac)
                      throws java.lang.Exception
        Advertises a Prefix to a BGP neighbour. Only sends the BGP messages, no writing to MD-SAL.
        Throws:
        java.lang.Exception
      • withdrawPrefix

        void withdrawPrefix​(java.lang.String rd,
                            java.lang.String prefix)
      • withdrawPrefixIfPresent

        void withdrawPrefixIfPresent​(java.lang.String rd,
                                     java.lang.String prefix)
      • getDCGwIP

        java.lang.String getDCGwIP()
      • sendNotificationEvent

        void sendNotificationEvent​(int code,
                                   int subcode)
      • setQbgprestartTS

        void setQbgprestartTS​(long qbgprestartTS)
      • bgpRestarted

        void bgpRestarted()