Lines Matching refs:net_connect

4 def test_ssh_connect(net_connect, commands, expected_responses):  argument
8 show_version = net_connect.send_command(commands["version"])
12 def test_enable_mode(net_connect, commands, expected_responses): argument
19 net_connect.enable()
20 enable_prompt = net_connect.find_prompt()
26 def test_config_mode(net_connect, commands, expected_responses): argument
31 if net_connect.config_mode() != "":
32 assert net_connect.check_config_mode() is True
37 def test_exit_config_mode(net_connect, commands, expected_responses): argument
41 net_connect.exit_config_mode()
42 assert net_connect.check_config_mode() is False
45 def test_config_set(net_connect, commands, expected_responses): argument
52 net_connect.send_config_set(config_commands[0])
54 net_connect.commit()
56 config_commands_output = net_connect.send_command(config_verify)
61 net_connect.send_config_set(config_commands)
63 net_connect.commit()
65 config_commands_output = net_connect.send_command_expect(config_verify)
72 def test_config_set_longcommand(net_connect, commands, expected_responses): argument
79 output = net_connect.send_config_set(config_commands) # noqa
83 def test_config_hostname(net_connect, commands, expected_responses): argument
86 if "arista" in net_connect.device_type:
87 current_hostname = net_connect.find_prompt()[:-1]
88 net_connect.send_config_set(command)
89 new_hostname = net_connect.find_prompt()
92 net_connect.set_base_prompt()
93 net_connect.send_config_set(f"hostname {current_hostname}")
96 def test_config_from_file(net_connect, commands, expected_responses): argument
103 net_connect.send_config_from_file(config_file)
104 config_commands_output = net_connect.send_command_expect(config_verify)
109 if "nokia_sros" in net_connect.device_type:
110 net_connect.save_config()
113 def test_disconnect(net_connect, commands, expected_responses): argument
117 net_connect.disconnect()