Home

Awesome

DEVNET

Simple Python script to slice Cisco config and export via SSH to another device

Features

Assumptions

Sample Cisco 9800 WLC config extraction

TRUNKS =  [
			'wireless tag policy',
			'wireless tag site',
			'wireless profile flex',
			'ap\s+([a-z0-9]{4}.[a-z0-9]{4}.[a-z0-9]{4})'
			]

Operation

With the above configuration, the script is expected to execute as following:

Requirements

Installation

pip3 install -r requirements.txt

References