10.2. jset

class nettoolkit.pyJuniper.jset.JSet(input_file: str = '', input_list: list[str] = <factory>)[source]

Bases: STR

check_n_update_hostname(line)[source]
convert_to_set()[source]

reads juniper standard config and convert it to set, store it to output

end_chars = ('{', '}', ';')
static get_extended_output_lines(left_str, line)[source]
static get_line_items(line)[source]
static get_output_line(left_str, line)[source]
hostname_str = ('host-name', 'hostname')
input_file: str = ''
input_list: list[str]
static is_blank_line(line)[source]

is provided string/line a blank line

Parameters:

s (str) – input string

Returns:

boolean value for result

Return type:

bool

static is_brckt_end(line)[source]
static is_brckt_start(line)[source]
is_config_start(line, config_start)[source]
static is_end_of_line(line)[source]
static is_multisection_inputs(line)[source]
static is_remarked_line(line)[source]
property objVar
print_conversion_log()[source]
remove_remarks_from_config()[source]

reads juniper standard config and removes remarks of it

save_last_annotation(line)[source]
send_to_conversion_log(line)[source]
property to_set

Return set of values for the provided string - s. splits string by lines and comma

Parameters:

s (str) – multiline input string

Returns:

splitted lines/items

Return type:

set

vlan_configs_begin = ('vlans ', 'bridge-domains ')
vlan_configs_begins = ('set vlans ', 'set bridge-domains ')