7.42. Common Modifier Fn
common modifier functions/classes
- class nettoolkit.facts_finder.modifiers.commons.modifier_commons.DataFrameInit(capture)[source]
Bases:
objectDatabase Object
- Parameters:
capture (str) – capture log file
- class nettoolkit.facts_finder.modifiers.commons.modifier_commons.KeyExchanger(column_mapper, cmd_lst)[source]
Bases:
objectDynamic Cisco Key Exchanger
- Parameters:
column_mapper (dict) – cisco commands column mapper dictionary
cmd_lst (list) – commands capture list
- class nettoolkit.facts_finder.modifiers.commons.modifier_commons.TableInterfaces[source]
Bases:
objectInterfaces Object common calls/methods class
- property pdf_dict
tables dictionary of DataFrame
- Returns:
dictionary of dataframe
- Return type:
dict
- class nettoolkit.facts_finder.modifiers.commons.modifier_commons.TableVrfs[source]
Bases:
objectVRF Object common calls/methods class
- property pdf_dict
vrf dictionary of DataFrame
- Returns:
dictionary of dataframe
- Return type:
dict
- class nettoolkit.facts_finder.modifiers.commons.modifier_commons.Var[source]
Bases:
objectvar Object common calls/methods class
- convert_to_dataframe()[source]
creates a new dictionary of data frame from local variables Dictionary of Pandas DataFrame as value
- create_a_temp_v6_hext2_3_column(sht_df)[source]
creates a temporary column ‘ipaddr’ for further processing
- Parameters:
sht_df (DataFrame) – pandas DataFrame
- Returns:
updated DataFrame with ‘ipaddr’ column
- Return type:
DataFrame
- property pdf_dict
dictionary of dataframe with var key
- Returns:
dictionary of dataframe
- Return type:
dict