Esempio n. 1
0
def test_load_template():
    with patch(
        "salt.utils.napalm.get_device",
        MagicMock(return_value=napalm_test_support.MockNapalmDevice()),
    ):
        ret = napalm_network.load_template("set_ntp_peers", peers=["192.168.0.1"])
        assert ret["out"] is None
Esempio n. 2
0
 def test_load_template(self):
     ret = napalm_network.load_template('set_ntp_peers',
                                        peers=['192.168.0.1'])
     assert ret['out'] is None
Esempio n. 3
0
 def test_load_template(self):
     ret = napalm_network.load_template("set_ntp_peers",
                                        peers=["192.168.0.1"])
     assert ret["out"] is None
Esempio n. 4
0
 def test_load_template_source(self):
     ret = napalm_network.load_template(
         template_source='hostname {{hostname}}', hostname='edge01')
     assert ret['result']