Interface OpenconfigYangTypesData
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.DataRoot
@Generated("mdsal-binding-generator")
public interface OpenconfigYangTypesData
extends org.opendaylight.yangtools.yang.binding.DataRoot
This module contains a set of extension types to the YANG builtin types that
used across multiple OpenConfig models. Portions of this code were derived from
IETF RFC 6021. Please reproduce this note if possible. IETF code is subject to
the following copyright and license: Copyright (c) IETF Trust and the persons
identified as authors of the code. All rights reserved. Redistribution and use
in source and binary forms, with or without modification, is permitted pursuant
to, and subject to the license terms contained in, the Simplified BSD License
set forth in Section 4.c of the IETF Trust's Legal Provisions Relating to IETF
Documents (http://trustee.ietf.org/license-info).
This class represents the following YANG schema fragment defined in module openconfig-yang-types
module openconfig-yang-types {
yang-version 1;
namespace "http://openconfig.net/yang/types/yang";
prefix oc-yang;
import openconfig-extensions {
prefix oc-ext;
}
oc-ext:openconfig-version 0.3.0;
revision 2021-03-02 {
}
revision 2020-06-30 {
}
revision 2018-11-21 {
}
revision 2018-04-24 {
}
revision 2017-07-30 {
}
revision 2017-04-03 {
}
revision 2017-01-26 {
}
oc-ext:catalog-organization openconfig;
oc-ext:origin openconfig;
typedef dotted-quad {
type string {
pattern "(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])";
oc-ext:posix-pattern "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$";
}
}
typedef hex-string {
type string {
pattern [0-9a-fA-F]*;
oc-ext:posix-pattern ^[0-9a-fA-F]*$;
}
}
typedef counter32 {
type uint32;
}
typedef counter64 {
type uint64;
}
typedef date-and-time {
type string {
pattern "[0-9]{4}\-(0[1-9]|1[0-2])\-(0[1-9]|[1-2][0-9]|3[0-1])T([0-1][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\.[0-9]+)?(Z|([+-]([0-1][0-9]|2[0-3]):[0-5][0-9]))";
oc-ext:posix-pattern "^[0-9]{4}\-(0[1-9]|1[0-2])\-(0[1-9]|[1-2][0-9]|3[0-1])T([0-1][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\.[0-9]+)?(Z|([+-]([0-1][0-9]|2[0-3]):[0-5][0-9]))$";
}
}
typedef date {
type string {
pattern "[0-9]{4}\-(0[1-9]|1[0-2])\-(0[1-9]|[1-2][0-9]|3[0-1])";
oc-ext:posix-pattern "^[0-9]{4}\-(0[1-9]|1[0-2])\-(0[1-9]|[1-2][0-9]|3[0-1])$";
}
}
typedef gauge64 {
type uint64;
}
typedef phys-address {
type string {
pattern "([0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*)?";
oc-ext:posix-pattern "^([0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*)?$";
}
}
typedef mac-address {
type string {
pattern "[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}";
oc-ext:posix-pattern "^[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}$";
}
}
}