% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>
This export connects to a router and transmits commands via telnet or SSH. It requires the following custom router fields:
The admin_cmd_* virtual fields, if set, will be processed in one of two ways. After being expanded, they will be run on the router specified by admin_address using the protocol specified by admin_protocol.
If the export command contains the string [@--, then it will be processed with Text::Template using [@-- and --@] as delimeters.
If the export command does not contain [@--, it will be double quoted and eval'd.
The admin_cmd_*_error virtual fields, if set, define a regular expression that will be matched against the output of the command being run. If the pattern matches, an error will be raised using the output as the error.
If any of the required router virtual fields are not defined, then the export silently declines.
The export itself takes no options.