13.2.1.1. Excel database Preparation - Manual
Requirement is to have an Excel database in appropriate format.
Two tabs as per given below names are mandatory.
Devicestab defines all images/icons, its position indexes, and icon informations; which are to be placed on the visio page(s).Cablingstab defines all cabling/connectivity related informations for above devices.
There is a simple sample Excel given at end of this page. Download and modify it as your requirement.
Read Below to understand it.
13.2.1.1.1. Devices Tab - Mandatory Columns
hostnamehostname or identity of device. ( No Exception and column name modification not allowed )
x-axishorizontal position of device. ( column name can be changed by defining var argument `x` in input)
y-axisvertical position of device. ( column name can be changed by defining var argument `y` in input)
13.2.1.1.2. Cablings Tab - Mandatory Columns
a_devicea-end device hostname for connectivity. (column name can be changed by defining var argument `dev_a` in input)
b_deviceb-end device hostname for connectivity. (column name can be changed by defining var argument `dev_b` in input)
13.2.1.1.3. Devices Tab - Optional Columns
stencilstencil file for individual device icon ( column name modification not allowed )
itemstencil name or number id from stencil ( column name modification not allowed )
iconHeightresizing of icon vertically ( column name modification not allowed )
iconWidthresizing of icon horizontaly ( column name modification not allowed )There can be N number of columns for additional device information ( column-names choose as per your desire )
Example: (device_model, serial_number, ip_address, rack_details, … and many more ).
Add those into device information using
cols_to_mergeargument list.Re-arrange those in list as desired in output.
13.2.1.1.4. Cablings Tab - Optional Columns
aportport number for a-end device. It will appear at middle. ( column name modification not allowed )
connector_typeline connector type. (default: straight, other options: angled, curved). ( column name modification not allowed )
colorline connector color. (default: blue). ( column name modification not allowed )
weightline connector weigth/thickness. (default: 3). ( column name modification not allowed )
patternline connector pattern. (default: 1). ( column name modification not allowed )
includedisplays only selected.
Non blank values will be selected and appeared in output.
It will get override by other sheet filters if defined.
Use this quick feature, if want to to have just one filter applied on data
A single Page drawing will appear
It uses filter_on_include_col argument to enable.
filter_on_include_col=TrueThere can be many other filter columns with any arbitrary names as per choice.
Column name with each matching row values will be considered as a filter, so multiple filters can be defined in a single column. ( see column: draw_type in given example data )
Each filtered data will create its own page in visio drawing.
Multiple columns with multiple matching row values can be combined together to generate more granular drawings.
Output will be multipage output.
It Uses sheet_filters argument in a form of dictionary for providing information
sheet_filters = { ## key = column header: ## value(s) = can be either single string or tuple of multiple strings. 'draw_type': ('core', 'access',), # Add more as desired .... }
Default, any device with no connectivity on Cablings tab, will be excluded.
Change this behaviour by setting False to input var argument
filter_on_cable.
13.2.1.1.5. sample excel database
Sample. Sample Excel file with Devices and Cablings tabs prefilled.