Interface LoggingRemoteConfig

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject
    All Known Subinterfaces:
    Config, State

    @Generated("mdsal-binding-generator")
    public interface LoggingRemoteConfig
    extends org.opendaylight.yangtools.yang.binding.DataObject
    Configuration data for remote log servers

    This class represents the following YANG schema fragment defined in module openconfig-system-logging

     grouping logging-remote-config {
       leaf host {
         type oc-inet:host;
       }
       leaf source-address {
         type oc-inet:ip-address;
       }
       leaf remote-port {
         type oc-inet:port-number;
         default 514;
       }
     }
     
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
        YANG identifier of the statement represented by this class.
    • Method Detail

      • implementedInterface

        Class<? extends LoggingRemoteConfig> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getHost

        Host getHost()
        Return host, or null if it is not present.
             
                 IP address or hostname of the remote log server
             
         
        Returns:
        Host host, or null if it is not present.
      • requireHost

        default @NonNull Host requireHost()
        Return host, guaranteed to be non-null.
             
                 IP address or hostname of the remote log server
             
         
        Returns:
        Host host, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if host is not present
      • getSourceAddress

        IpAddress getSourceAddress()
        Return sourceAddress, or null if it is not present.
             
                 Source IP address for packets to the log server
             
         
        Returns:
        IpAddress sourceAddress, or null if it is not present.
      • requireSourceAddress

        default @NonNull IpAddress requireSourceAddress()
        Return sourceAddress, guaranteed to be non-null.
             
                 Source IP address for packets to the log server
             
         
        Returns:
        IpAddress sourceAddress, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if sourceAddress is not present
      • getRemotePort

        PortNumber getRemotePort()
        Return remotePort, or null if it is not present.
             
                 Sets the destination port number for syslog UDP messages to the server. The
                 default for syslog is 514.
             
         
        Returns:
        PortNumber remotePort, or null if it is not present.
      • requireRemotePort

        default @NonNull PortNumber requireRemotePort()
        Return remotePort, guaranteed to be non-null.
             
                 Sets the destination port number for syslog UDP messages to the server. The
                 default for syslog is 514.
             
         
        Returns:
        PortNumber remotePort, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if remotePort is not present