Need to parse some network configuration
$30-250 AUD
Maksettu toimituksen yhteydessä
Hi -- I need to be able to parse the following FortiOS configuration:
```
config system interface
edit "VLAN100"
set vdom "customer-a"
set ip [login to view URL] [login to view URL]
set bfd disable
set snmp-index 51
set interface "Po-1"
set vlanid 150
next
edit "VLAN100-B"
set vdom "customer-a"
set ip [login to view URL] [login to view URL]
set bfd disable
set snmp-index 51
set interface "Po-1"
set vlanid 150
next
edit "VLAN200"
set vdom "customer-b"
set ip [login to view URL] [login to view URL]
set snmp-index 52
set interface "Po-2"
set vlanid 250
next
end
```
I want to be able to parse the above block of data so that I can export to a CSV in the following format:
vdom: customer-a
interface: VLAN100
vlan: 150
IP: [login to view URL]
interface: VLAN100-B
vlan: 150
IP: [login to view URL]
vdom: customer-b
interface: VLAN200
vlan: 250
IP: [login to view URL]
and so on..
As per above, 'vdom' being the top and having 'interface' children and so on. Keeping in mind that I won't know the names of the vdom as per this example. Also there is a lot of extra configuration before and after the above that is not needed. I want to be able to dump my configuration file and take out only what I have mentioned above in CSV.
Projektin tunnus: #26826490
Tietoa projektista
4 freelanceria on tarjonnut keskimäärin $125 tähän työhön
Hello there. i can write regular expressions to parse the data into csv for you. i can also start work immediately
Hello Greetings!! I have gone through the details of your project and I find it well within my capabilities. Please feel free to contact me directly to discuss the project. Thanks