Skip to content

Commit

Permalink
fix: Add subnet ipv4/ipv6 to network schema (#5191)
Browse files Browse the repository at this point in the history
These are used by our openstack network_data.json parsing code and
get used by the sysconfig renderer.

Fixes GH-4911
  • Loading branch information
TheRealFalcon authored Apr 19, 2024
1 parent 7c67f77 commit 0b1ca17
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cloudinit/config/schemas/schema-network-config-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,14 @@
"items": {
"$ref": "#/$defs/anyOf_type_route"
}
},
"ipv4": {
"type": "boolean",
"description": "Indicate if the subnet is IPv4. If not specified, it will be inferred from the subnet type or address. This exists for compatibility with OpenStack's ``network_data.json`` when rendered through sysconfig."
},
"ipv6": {
"type": "boolean",
"description": "Indicate if the subnet is IPv6. If not specified, it will be inferred from the subnet type or address. This is exists for compatibility with OpenStack's ``network_data.json`` when rendered through sysconfig."
}
}
},
Expand Down

0 comments on commit 0b1ca17

Please sign in to comment.