1 2 3 4 5 6 7 8 9 | """Return a network config dict for rendering ENI or netplan files."""
if self._network_config is None:
if self.metadata is not None:
try:
self._network_config = convert_ec2_metadata_network_config(
self.metadata)
except KeyError:
return None
return self._network_config
|