os_ken.lib.packet.vxlan.
vni_from_bin
(buf)¶Converts binary representation VNI to integer.
Parameters: | buf -- binary representation of VNI. |
---|---|
Returns: | VNI integer. |
os_ken.lib.packet.vxlan.
vni_to_bin
(vni)¶Converts integer VNI to binary representation.
Parameters: | vni -- integer of VNI |
---|---|
Returns: | binary representation of VNI. |
os_ken.lib.packet.vxlan.
vxlan
(vni)¶VXLAN (RFC 7348) header encoder/decoder class.
An instance has the following attributes at least. Most of them are same to the on-wire counterparts but in host byte order. __init__ takes the corresponding args in this order.
Attribute | Description |
---|---|
vni | VXLAN Network Identifier |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.