I have several config files for routers. Variables are between < >
configure
port aps-<x>
description "<VAR1>;<port_APS>"
aps
neighbor <@IP_loopback3_NM_PAIRE>
no revert-time
working-circuit <x/y/z>
exit
sonet-sdh
path
mtu 4494
atm
exit
no shutdown
exit
exit
no shutdown
exit
exit
I wonder how i can store raw text into my database and then use php for building the final config with some values instead of my variables.... Just like a:
sprintf('port aps-%d',$aps_port);
but for the entirely text...
Any ideas?
Thks all!