Interface Protocols

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

    public interface Protocols
    extends org.opendaylight.yangtools.yang.binding.ChildOf<NetworkInstance>, org.opendaylight.yangtools.yang.binding.Augmentable<Protocols>
    The routing protocols that are enabled for this network-instance.

    This class represents the following YANG schema fragment defined in module openconfig-network-instance

     container protocols {
       list protocol {
         key "identifier name";
         leaf identifier {
           type leafref {
             path ../config/identifier;
           }
         }
         leaf name {
           type leafref {
             path ../config/name;
           }
         }
         container config {
           uses protocols-config;
         }
         container state {
           config false;
           uses protocols-config;
           uses protocols-state;
         }
         container static {
           when "../config/identifier = 'STATIC'" {
           }
           uses lroute:local-static-top;
         }
         container aggregate {
           when "../config/identifier = 'LOCAL-AGGREGATE'" {
           }
           uses lroute:local-aggregate-top;
         }
       }
     }
     
    The schema path to identify an instance is openconfig-network-instance/network-instance-top/network-instances/network-instance/protocols

    To create instances of this class use ProtocolsBuilder.

    See Also:
    ProtocolsBuilder
    • Field Detail

      • QNAME

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

      • implementedInterface

        default Class<Protocols> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getProtocol

        @Nullable List<Protocol> getProtocol()
        A process (instance) of a routing protocol. Some systems may not support more than one instance of a particular routing protocol
        Returns:
        java.util.List protocol, or null if not present
      • nonnullProtocol

        default @NonNull List<Protocol> nonnullProtocol()
        Returns:
        java.util.List protocol, or an empty list if it is not present