Page MenuHomeDevCentral

Simplify network configuration
ClosedPublic

Authored by dereckson on Mar 7 2022, 22:25.
Tags
None
Referenced Files
F3742519: D2581.id6544.diff
Thu, Nov 14, 07:46
Unknown Object (File)
Wed, Nov 13, 05:46
Unknown Object (File)
Wed, Nov 13, 05:46
Unknown Object (File)
Wed, Nov 13, 05:46
Unknown Object (File)
Wed, Nov 13, 05:46
Unknown Object (File)
Wed, Nov 13, 05:46
Unknown Object (File)
Wed, Nov 13, 05:46
Unknown Object (File)
Wed, Nov 13, 05:46
Subscribers
None

Details

Summary

The network unit wants to configure "IPv4", "IPv6" and "private interface".

The private interface configuration is an IPv4, so there is redundant code
to maintain there.

This change introduces an interface dictionary in the nodes pillar where
the ipv4/ipv6/private configuration is migrated.

MOTD wants a public IPV4 and a gateway, so the node.resolve_network()
parses our configuration to provide that and return private IPv4 for
servers not assigned a public address. The first interface wins.

Elsewhere, configuration won't be changed as the grain ipv4 is used.

Test Plan

Apply to Dwellers and router-001

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson held this revision as a draft.

Next: we need to edit roles/core/network to use this new data structure.

gateway, assign directly non-router IP to drake/24

Add blank lines to adhere to PEP-8. -test_paas_docker

dereckson retitled this revision from WIP: simplify network configuration to Simplify network configuration.Mar 20 2022, 21:53

Rebase. Apply to IPv6. Remove private.

Use resolve_network() in OpenSearch

Use 255.255.255.240 (/28) for Drake intraNought

Indent IPv6. Fix for loop in Python.

Arguments in ipv4, netmasks

dereckson published this revision for review.Mar 21 2022, 20:12
This revision is now accepted and ready to land.Mar 21 2022, 20:15
This revision was automatically updated to reflect the committed changes.