YANG内置类型集(Built-In Types)
| 类型名 | 描述 |
|---|---|
| binary | 任意二进制数据 |
| bits | 比特位或标志位集 |
| boolean | true或者false |
| decimal64 | 64比特带符号十进制数 |
| empty | 无任何值的叶节点 |
| enumeration | 枚举类型 |
| identityref | 抽象标识的引用 |
| instance-identifier | 数据树节点的引用 |
| int8 | 8位带符号整数 |
| int16 | 16位带符号整数 |
| int32 | 32位带符号整数 |
| int64 | 64位带符号整数 |
| uint8 | 8位无符号整数 |
| uint16 | 16位无符号整数 |
| uint32 | 32位无符号整数 |
| uint64 | 64位无符号整数 |
| leafref | 叶子实例的引用 |
| string | 字符串 |
| union | 联合体 |
Range of Integer Type
The integer built-in types are int8, int16, int32, int64, uint8,uint16, uint32, and uint64. They represent signed and unsigned integers of different sizes:
-
int8 represents integer values between -128 and 127, inclusively.
-
int16 represents integer values between -32768 and 32767,inclusively.
-
int32 represents integer values between -2147483648 and 2147483647,inclusively.
-
int64 represents integer values between -9223372036854775808 and 9223372036854775807,inclusively.
-
uint8 represents integer values between 0 and 255, inclusively.
-
uint16 represents integer values between 0 and 65535, inclusively.
-
uint32 represents integer values between 0 and 4294967295, inclusively.
-
uint64 represents integer values between 0 and 18446744073709551615,inclusively.

11万+

被折叠的 条评论
为什么被折叠?



