Interface OpenflowConnectionsConfig
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
@Generated("mdsal-binding-generator") public interface OpenflowConnectionsConfig extends org.opendaylight.yangtools.yang.binding.DataObject
Configuration data for OpenFlow controller connectionsThis class represents the following YANG schema fragment defined in module openconfig-openflow
grouping openflow-connections-config { leaf aux-id { type of-types:auxiliary-id; } leaf priority { type uint8; } leaf address { type oc-inet:ip-address; } leaf port { type oc-inet:port-number; default 6653; } leaf transport { type of-types:transport; default TCP; } leaf certificate-id { type string; } leaf source-interface { type oc-if:base-interface-ref; } }
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QNameQNAMEYANG identifier of the statement represented by this class.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IpAddressgetAddress()Return address, ornullif it is not present.AuxiliaryIdgetAuxId()Return auxId, ornullif it is not present.StringgetCertificateId()Return certificateId, ornullif it is not present.PortNumbergetPort()Return port, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint8getPriority()Return priority, ornullif it is not present.StringgetSourceInterface()Return sourceInterface, ornullif it is not present.TransportgetTransport()Return transport, ornullif it is not present.Class<? extends OpenflowConnectionsConfig>implementedInterface()default @NonNull IpAddressrequireAddress()Return address, guaranteed to be non-null.default @NonNull AuxiliaryIdrequireAuxId()Return auxId, guaranteed to be non-null.default @NonNull StringrequireCertificateId()Return certificateId, guaranteed to be non-null.default @NonNull PortNumberrequirePort()Return port, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint8requirePriority()Return priority, guaranteed to be non-null.default @NonNull StringrequireSourceInterface()Return sourceInterface, guaranteed to be non-null.default @NonNull TransportrequireTransport()Return transport, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends OpenflowConnectionsConfig> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getAuxId
AuxiliaryId getAuxId()
Return auxId, ornullif it is not present.Controller auxiliary ID. Must be 0 for the main controller. One controller may have multiple auxiliary connections as specified by the Openflow protocol. Besides configuring the main controller, it is also possible to configure auxiliary connections. The main controller must have the aux-id set to zero. All others must have an aux-id different from 0.- Returns:
AuxiliaryIdauxId, ornullif it is not present.
-
requireAuxId
default @NonNull AuxiliaryId requireAuxId()
Return auxId, guaranteed to be non-null.Controller auxiliary ID. Must be 0 for the main controller. One controller may have multiple auxiliary connections as specified by the Openflow protocol. Besides configuring the main controller, it is also possible to configure auxiliary connections. The main controller must have the aux-id set to zero. All others must have an aux-id different from 0.- Returns:
AuxiliaryIdauxId, guaranteed to be non-null.- Throws:
NoSuchElementException- if auxId is not present
-
getPriority
org.opendaylight.yangtools.yang.common.Uint8 getPriority()
Return priority, ornullif it is not present.Optional value for servicing auxiliary connections with different priorities.- Returns:
Uint8priority, ornullif it is not present.
-
requirePriority
default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requirePriority()
Return priority, guaranteed to be non-null.Optional value for servicing auxiliary connections with different priorities.- Returns:
Uint8priority, guaranteed to be non-null.- Throws:
NoSuchElementException- if priority is not present
-
getAddress
IpAddress getAddress()
Return address, ornullif it is not present.The IP address of the controller.- Returns:
IpAddressaddress, ornullif it is not present.
-
requireAddress
default @NonNull IpAddress requireAddress()
Return address, guaranteed to be non-null.The IP address of the controller.- Returns:
IpAddressaddress, guaranteed to be non-null.- Throws:
NoSuchElementException- if address is not present
-
getPort
PortNumber getPort()
Return port, ornullif it is not present.Controller port to use.- Returns:
PortNumberport, ornullif it is not present.
-
requirePort
default @NonNull PortNumber requirePort()
Return port, guaranteed to be non-null.Controller port to use.- Returns:
PortNumberport, guaranteed to be non-null.- Throws:
NoSuchElementException- if port is not present
-
getTransport
Transport getTransport()
Return transport, ornullif it is not present.Controller transport protocol used.- Returns:
Transporttransport, ornullif it is not present.
-
requireTransport
default @NonNull Transport requireTransport()
Return transport, guaranteed to be non-null.Controller transport protocol used.- Returns:
Transporttransport, guaranteed to be non-null.- Throws:
NoSuchElementException- if transport is not present
-
getCertificateId
String getCertificateId()
Return certificateId, ornullif it is not present.Certificate ID is used for TLS connections. When installed, certificates are associated with an ID. This ID specifies the certificate to use in a TLS connection.- Returns:
StringcertificateId, ornullif it is not present.
-
requireCertificateId
default @NonNull String requireCertificateId()
Return certificateId, guaranteed to be non-null.Certificate ID is used for TLS connections. When installed, certificates are associated with an ID. This ID specifies the certificate to use in a TLS connection.- Returns:
StringcertificateId, guaranteed to be non-null.- Throws:
NoSuchElementException- if certificateId is not present
-
getSourceInterface
String getSourceInterface()
Return sourceInterface, ornullif it is not present.Optionally specify the source interface for the controller connection.- Returns:
StringsourceInterface, ornullif it is not present.
-
requireSourceInterface
default @NonNull String requireSourceInterface()
Return sourceInterface, guaranteed to be non-null.Optionally specify the source interface for the controller connection.- Returns:
StringsourceInterface, guaranteed to be non-null.- Throws:
NoSuchElementException- if sourceInterface is not present
-
-