Due to a ransomware attack, the wiki was reverted to a July 2022 version. . We apologize for the lack of a more recent valid backup.
...
Code Block | ||
---|---|---|
| ||
File : TunnelType.java public abstract class TunnelType { } File : NetworkId.java public interface NetworkId { TunnelType leafNetworkId(); interface NetworkIdBuilder { TunnelType leafNetworkId(); NetworkIdBuilder leafNetworkId(TunnelType leafNetworkId); NetworkId build(); } } |
Bits
Overview
The bits built-in type represents a bit set. That is, a bits value is a set of flags identified by small integer position numbers starting at 0. Each bit number has an assigned name.
Java mapping
Container BitSet is used to store bits during code generation.
Example
Code Block | ||
---|---|---|
| ||
File : test.yang module Test { yang-version 1; namespace http://huawei.com; prefix Ant; typedef MyBits { type bits { bit disable-nagle { position 0; } bit auto-sense-speed { position 1; } bit Mb-only { position 2; } } } } |
...