예제 #1
0
 def test_connect_to_non_default_vdc(self):
     c = Connection(hostname='admin',
                    start=['mock_device_cli --os nxos --state vdc_exec'],
                    os='nxos',
                    init_exec_commands=[],
                    init_config_commands=[],
                    log_buffer=True)
     c.connect()
     c.switchback()
     c.configure()
 def test_connect_default_vdc_with_more_prompt(self):
     c = Connection(hostname='N7K-B',
                    start=['mock_device_cli --os nxos --state vdc_exec2'],
                    os='nxos',
                    platform='n7k',
                    init_exec_commands=[],
                    init_config_commands=[],
                    log_buffer=True,
                    learn_hostname=True,
                    mit=True)
     c.connect()
     c.switchback()