Attaches an existing source to a port and/or edge node.
Available in a network database and requires the star$network role.
Parameters:
| Name | Optional | Type | Description |
| tag$ | Mandatory | Text | The tag of the source to be attached. |
| port$ | Optional | Text | The name of the port to be attached to the source. |
| node$ | Optional | Text | The name of the edge node to be attached to the source. |
Examples:
SELECT attach_source('temp-123','myport','edge-1'); -- attaches source 'temp-123' to a port and node
SELECT attach_source('temp-123','myport',null; -- attaches source 'temp-123' to a port
SELECT attach_source('temp-123',null,'edge-1'); -- attaches source 'temp-123' to a node
Tips:
- Use a null value to omit an optional parameter
- The star$sources view indicates which sources exist
- The star$ports view lists known ports
- The star$nodes view includes known edge nodes
Comments
Article is closed for comments.