diff options
| author | Martin Schwenke <martin@meltin.net> | 2009-07-24 14:37:34 +1000 |
|---|---|---|
| committer | Martin Schwenke <martin@meltin.net> | 2009-07-24 14:37:34 +1000 |
| commit | a357fe2df0e86d751bbb5743be338fc80baf3635 (patch) | |
| tree | 4dc5b2b67e6d7d17cfd9464dca0b637ec448c8af /base/root/scripts/nsd_server_common.bash | |
| parent | 7b8d81265cfc31206f130a96b7a8ed4ecd87b31f (diff) | |
Fix SoFS public address generation.
New configuration variable PUBLIC_IP_OFFSET indicates where first
public IP address is relative to FIRSTIP. Default is 100, so we
suggest a convention where static IPs (as indicated by FIRSTIP) are
below 100 and public IPs are between 100 and 200.
make_public_addresses() should once again do the right thing by
default, so the default value of PUBLIC_ADDRESSES now works again.
Public addresses are now generated according to the NODES list. A
function has_public_addresses_<node_type> is defined for each node
type that might have public addresses, and returns true if that node
type should have public addresses. A default function handles all of
the other node types.
The 2nd argument to make_public_addresses() is now a list of IP
offsets rather than node numbers, since node numbers no longer exist
in any useful way.
To help with this create_cluster() now sets NUMNODES if it isn't set.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'base/root/scripts/nsd_server_common.bash')
0 files changed, 0 insertions, 0 deletions
