Interface Bgp

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.Augmentable<Bgp>, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.ChildOf<EbgpData>, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject

    @Generated("mdsal-binding-generator")
    public interface Bgp
    extends org.opendaylight.yangtools.yang.binding.ChildOf<EbgpData>, org.opendaylight.yangtools.yang.binding.Augmentable<Bgp>

    This class represents the following YANG schema fragment defined in module ebgp

     container bgp {
       container config-server {
         leaf host {
           type inet:ipv4-address;
         }
         leaf port {
           type uint32;
         }
       }
       container as-id {
         leaf local-as {
           type uint32;
         }
         leaf router-id {
           type inet:ip-address;
         }
         leaf stalepath-time {
           type uint32;
           default 360;
         }
         leaf announce-fbit {
           type boolean;
         }
         leaf keepalive {
           type uint32;
           default 60;
         }
         leaf holdtime {
           type uint32;
           default 180;
         }
       }
       container graceful-restart {
         leaf stalepath-time {
           type uint32;
         }
       }
       container logging {
         leaf file {
           type string;
         }
         leaf level {
           type string;
         }
       }
       container neighborsContainer {
         list neighbors {
           key address;
           leaf address {
             type inet:ipv4-address;
           }
           leaf remote-as {
             type uint32;
           }
           uses tcp-security-option-grouping;
           container ebgp-multihop {
             leaf nhops {
               type uint32;
             }
             leaf peer-ip {
               type leafref {
                 path /ericsson-bgp:bgp/neighborsContainer/neighbors/address;
               }
             }
           }
           container update-source {
             leaf source-ip {
               type inet:ipv4-address;
             }
             leaf peer-ip {
               type leafref {
                 path /ericsson-bgp:bgp/neighborsContainer/neighbors/address;
               }
             }
           }
           list address-families {
             key "afi safi";
             leaf afi {
               type uint32;
             }
             leaf safi {
               type uint32;
             }
             leaf peer-ip {
               type leafref {
                 path /ericsson-bgp:bgp/neighborsContainer/neighbors/address;
               }
             }
           }
         }
       }
       container networksContainer {
         list networks {
           key "rd prefix-len";
           leaf rd {
             type string;
           }
           leaf prefix-len {
             type string;
           }
           leaf afi {
             type uint32;
           }
           leaf macaddress {
             type string;
           }
           leaf bgp_control_plane_type {
             type bgp_control_plane_type;
           }
           leaf nexthop {
             type inet:ipv4-address;
           }
           leaf label {
             type uint32;
           }
           leaf ethtag {
             type uint32;
           }
           leaf esi {
             type string;
           }
           leaf encap-type {
             type encap_type;
           }
           leaf routermac {
             type string;
           }
           leaf l3vni {
             type uint32;
           }
           leaf l2vni {
             type uint32;
           }
         }
       }
       container vrfsContainer {
         list vrfs {
           key rd;
           leaf rd {
             type string;
           }
           list address-families-vrf {
             key "afi safi";
             leaf afi {
               type uint32;
             }
             leaf safi {
               type uint32;
             }
           }
           leaf-list import-rts {
             type string;
           }
           leaf-list export-rts {
             type string;
           }
         }
       }
       typedef layer_type {
         type enumeration {
           enum LAYER_2 {
             value 1;
           }
           enum LAYER_3 {
             value 2;
           }
         }
       }
       typedef address_family {
         type enumeration {
           enum IPV_4 {
             value 1;
           }
           enum IPV_6 {
             value 2;
           }
           enum L2VPN {
             value 3;
           }
         }
       }
       typedef encap_type {
         type enumeration {
           enum L2TPV3_OVER_IP {
             value 1;
           }
           enum GRE {
             value 2;
           }
           enum IP_IN_IP {
             value 7;
           }
           enum VXLAN {
             value 8;
           }
           enum MPLS {
             value 10;
           }
         }
       }
       typedef bgp_control_plane_type {
         type enumeration {
           enum PROTOCOL_LU {
             value 1;
           }
           enum PROTOCOL_L3VPN {
             value 2;
           }
           enum PROTOCOL_EVPN {
             value 3;
           }
           enum PROTOCOL_ANY {
             value 4;
           }
         }
       }
       leaf vpn-type {
         type enumeration {
           enum l3 {
             value 0;
           }
           enum l2 {
             value 1;
           }
         }
         default l3;
       }
       container multipathContainer {
         list multipath {
           key "afi safi";
           leaf afi {
             type uint32;
           }
           leaf safi {
             type uint32;
           }
           leaf multipath-enabled {
             type boolean;
           }
         }
       }
       container vrfMaxpathContainer {
         list vrfMaxpath {
           key rd;
           leaf rd {
             type string;
           }
           leaf maxpaths {
             type uint16;
           }
         }
       }
       container dcgw-tep-list {
         list dcgw-tep {
           key dc-gw-ip;
           leaf dc-gw-ip {
             type string;
           }
           leaf-list tep-ips {
             type string;
           }
         }
       }
     }
     
    The schema path to identify an instance is ebgp/bgp

    To create instances of this class use BgpBuilder.

    See Also:
    BgpBuilder
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

        default java.lang.Class<Bgp> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • bindingHashCode

        static int bindingHashCode​(@NonNull Bgp obj)
        Default implementation of Object.hashCode() contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent hashing results across all implementations.
        Parameters:
        obj - Object for which to generate hashCode() result.
        Returns:
        Hash code value of data modeled by this interface.
        Throws:
        java.lang.NullPointerException - if obj is null
      • bindingEquals

        static boolean bindingEquals​(@NonNull Bgp thisObj,
                                     java.lang.Object obj)
        Default implementation of Object.equals(Object) contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent equality results across all implementations.
        Parameters:
        thisObj - Object acting as the receiver of equals invocation
        obj - Object acting as argument to equals invocation
        Returns:
        True if thisObj and obj are considered equal
        Throws:
        java.lang.NullPointerException - if thisObj is null
      • bindingToString

        static java.lang.String bindingToString​(@NonNull Bgp obj)
        Default implementation of Object.toString() contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent string representations across all implementations.
        Parameters:
        obj - Object for which to generate toString() result.
        Returns:
        String value of data modeled by this interface.
        Throws:
        java.lang.NullPointerException - if obj is null
      • getConfigServer

        ConfigServer getConfigServer()
        Return configServer, or null if it is not present.
        Returns:
        org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.ConfigServer configServer, or null if it is not present.
      • getAsId

        AsId getAsId()
        Return asId, or null if it is not present.
        Returns:
        org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.AsId asId, or null if it is not present.
      • getGracefulRestart

        GracefulRestart getGracefulRestart()
        Return gracefulRestart, or null if it is not present.
        Returns:
        org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.GracefulRestart gracefulRestart, or null if it is not present.
      • getLogging

        Logging getLogging()
        Return logging, or null if it is not present.
        Returns:
        org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.Logging logging, or null if it is not present.
      • getNeighborsContainer

        NeighborsContainer getNeighborsContainer()
        Return neighborsContainer, or null if it is not present.
        Returns:
        org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.NeighborsContainer neighborsContainer, or null if it is not present.
      • getNetworksContainer

        NetworksContainer getNetworksContainer()
        Return networksContainer, or null if it is not present.
        Returns:
        org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.NetworksContainer networksContainer, or null if it is not present.
      • getVrfsContainer

        VrfsContainer getVrfsContainer()
        Return vrfsContainer, or null if it is not present.
        Returns:
        org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.VrfsContainer vrfsContainer, or null if it is not present.
      • getVpnType

        Bgp.VpnType getVpnType()
        Return vpnType, or null if it is not present.
             
                 The type of the VPN Instance. L3 indicates it is an L3VPN. L2 indicates it is
                 EVPN
             
         
        Returns:
        org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.Bgp.VpnType vpnType, or null if it is not present.
      • getMultipathContainer

        MultipathContainer getMultipathContainer()
        Return multipathContainer, or null if it is not present.
        Returns:
        org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.MultipathContainer multipathContainer, or null if it is not present.
      • getVrfMaxpathContainer

        VrfMaxpathContainer getVrfMaxpathContainer()
        Return vrfMaxpathContainer, or null if it is not present.
        Returns:
        org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.VrfMaxpathContainer vrfMaxpathContainer, or null if it is not present.
      • getDcgwTepList

        DcgwTepList getDcgwTepList()
        Return dcgwTepList, or null if it is not present.
        Returns:
        org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.DcgwTepList dcgwTepList, or null if it is not present.