Skip to content

Commit

Permalink
fix: Add "broadcast" to network v1 schema (#5034)
Browse files Browse the repository at this point in the history
Both the klibc initramfs code and the eni code will write a network v1
configuration including the broadcast address if it is provided. It
gets rendered if using the eni renderer.

LP: #2056460
  • Loading branch information
TheRealFalcon authored and holmanb committed Mar 11, 2024
1 parent 8eba10c commit 3eefceb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cloudinit/config/schemas/schema-network-config-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,10 @@
"type": "string",
"description": "IPv4 subnet mask in dotted format or CIDR notation"
},
"broadcast": {
"type": "string",
"description": "IPv4 broadcast address in dotted format."
},
"gateway": {
"type": "string",
"description": "IPv4 address of the default gateway for this subnet."
Expand Down
2 changes: 2 additions & 0 deletions doc/rtd/reference/network-config-format-v1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ Valid keys for ``subnets`` include the following:
interface will be handled during boot.
- ``address``: IPv4 or IPv6 address. It may include CIDR netmask notation.
- ``netmask``: IPv4 subnet mask in dotted format or CIDR notation.
- ``broadcast`` : IPv4 broadcast address in dotted format. This is
only rendered if :file:`/etc/network/interfaces` is used.
- ``gateway``: IPv4 address of the default gateway for this subnet.
- ``dns_nameservers``: Specify a list of IPv4 dns server IPs to end up in
:file:`resolv.conf`.
Expand Down

0 comments on commit 3eefceb

Please sign in to comment.