Interface OpendaylightPortTypesData
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.DataRoot
@Generated("mdsal-binding-generator")
public interface OpendaylightPortTypesData
extends org.opendaylight.yangtools.yang.binding.DataRoot
This class represents the following YANG schema fragment defined in module opendaylight-port-types
module opendaylight-port-types { namespace urn:opendaylight:flow:types:port; prefix port-types; import ietf-yang-types { prefix yang; revision-date 2013-07-15; } import opendaylight-queue-types { prefix queue-types; revision-date 2013-09-25; } import openflow-protocol { prefix ofproto; revision-date 2013-07-31; } import opendaylight-multipart-types { prefix multipart; revision-date 2017-01-12; } revision 2013-09-25 { } typedef port-reason { type enumeration { enum add; enum delete; enum update; } } typedef port-config { type bits { bit PORT-DOWN; bit NO-RECV; bit NO-FWD; bit NO-PACKET-IN; } } grouping port-state { leaf link-down { type boolean; } leaf blocked { type boolean; } leaf live { type boolean; } } typedef port-features { type bits { bit ten-mb-hd; bit ten-mb-fd; bit hundred-mb-hd; bit hundred-mb-fd; bit one-gb-hd; bit one-gb-fd; bit ten-gb-fd; bit forty-gb-fd; bit hundred-gb-fd; bit one-tb-fd; bit other; bit copper; bit fiber; bit autoeng; bit pause; bit pause-asym; } } typedef port-number-uni { type union { type uint32; type string; } } grouping common-port { leaf port-number { type port-number-uni; } leaf hardware-address { type yang:mac-address; } leaf configuration { type port-config; } leaf advertised-features { type port-features; } } grouping common-port-with-mask { uses common-port; leaf mask { type port-config; } } grouping flow-port-status { leaf reason { type port-reason; } uses flow-capable-port; } grouping queues { list queue { key queue-id; uses queue-types:queue-packet; } } grouping flow-capable-port { uses common-port; leaf name { type string; } container state { uses port-state; } leaf current-feature { type port-features; } leaf supported { type port-features; } leaf peer-features { type port-features; } leaf current-speed { type uint32; units kbps; } leaf maximum-speed { type uint32; units kbps; } uses queues; } grouping port-mod { container port { list port { key port-mod-order; leaf port-mod-order { type uint32; } uses common-port-with-mask; leaf container-name { type string; } leaf port-name { type string; } leaf barrier { type boolean; } } } } container port-message { uses common-port-with-mask; uses ofproto:ofHeader; } augment /multipart:multipart-reply/multipart:multipart-reply-body { case multipart-reply-port-desc { list ports { uses flow-capable-port; } } } augment /multipart:multipart-request/multipart:multipart-request-body { case multipart-request-port-desc; } }
-
Method Summary
Modifier and TypeMethodDescriptionReturn portMessage, ornull
if it is not present.@NonNull PortMessage
Return portMessage, or an empty instance if it is not present.
-
Method Details
-
getPortMessage
PortMessage getPortMessage()Return portMessage, ornull
if it is not present.- Returns:
PortMessage
portMessage, ornull
if it is not present.
-
nonnullPortMessage
@NonNull PortMessage nonnullPortMessage()Return portMessage, or an empty instance if it is not present.- Returns:
PortMessage
portMessage, or an empty instance if it is not present.
-