… | |
… | |
158 | |
158 | |
159 | =item $nodeid = node_of $port |
159 | =item $nodeid = node_of $port |
160 | |
160 | |
161 | Extracts and returns the node ID from a port ID or a node ID. |
161 | Extracts and returns the node ID from a port ID or a node ID. |
162 | |
162 | |
|
|
163 | =item configure $profile, key => value... |
|
|
164 | |
163 | =item configure key => value... |
165 | =item configure key => value... |
164 | |
166 | |
165 | Before a node can talk to other nodes on the network (i.e. enter |
167 | Before a node can talk to other nodes on the network (i.e. enter |
166 | "distributed mode") it has to configure itself - the minimum a node needs |
168 | "distributed mode") it has to configure itself - the minimum a node needs |
167 | to know is its own name, and optionally it should know the addresses of |
169 | to know is its own name, and optionally it should know the addresses of |
… | |
… | |
174 | |
176 | |
175 | =item step 1, gathering configuration from profiles |
177 | =item step 1, gathering configuration from profiles |
176 | |
178 | |
177 | The function first looks up a profile in the aemp configuration (see the |
179 | The function first looks up a profile in the aemp configuration (see the |
178 | L<aemp> commandline utility). The profile name can be specified via the |
180 | L<aemp> commandline utility). The profile name can be specified via the |
179 | named C<profile> parameter. If it is missing, then the nodename (F<uname |
181 | named C<profile> parameter or can simply be the first parameter). If it is |
180 | -n>) will be used as profile name. |
182 | missing, then the nodename (F<uname -n>) will be used as profile name. |
181 | |
183 | |
182 | The profile data is then gathered as follows: |
184 | The profile data is then gathered as follows: |
183 | |
185 | |
184 | First, all remaining key => value pairs (all of which are conveniently |
186 | First, all remaining key => value pairs (all of which are conveniently |
185 | undocumented at the moment) will be interpreted as configuration |
187 | undocumented at the moment) will be interpreted as configuration |