Esempio n. 1
0
def name_servers_list(pb):
    task = NxosSystem(log)
    task.name_servers = ['1.2.3.4', '5.6.7.8']
    task.state = 'present'
    add_task_name(task)
    task.commit()
    pb.add_task(task)
Esempio n. 2
0
def system_mtu(pb):
    task = NxosSystem(log)
    task.system_mtu = 9216
    task.state = 'present'
    add_task_name(task)
    task.commit()
    pb.add_task(task)
Esempio n. 3
0
def domain_search(pb):
    task = NxosSystem(log)
    task.domain_search = ['foo.com', 'bar.com']
    task.state = 'present'
    add_task_name(task)
    task.commit()
    pb.add_task(task)
Esempio n. 4
0
def domain_name(pb):
    task = NxosSystem(log)
    task.domain_name = 'dc-101.foo.com'
    task.state = 'present'
    add_task_name(task)
    task.commit()
    pb.add_task(task)
Esempio n. 5
0
def domain_lookup(pb):
    task = NxosSystem(log)
    task.domain_lookup = True
    task.state = 'present'
    add_task_name(task)
    task.commit()
    pb.add_task(task)
Esempio n. 6
0
def hostname(pb):
    task = NxosSystem(log)
    task.hostname = 'dc-101'
    task.state = 'present'
    add_task_name(task)
    task.commit()
    pb.add_task(task)
Esempio n. 7
0
def name_servers_dict(pb):
    task = NxosSystem(log)
    task.name_servers = [{
        'server': '1.2.3.4',
        'vrf': 'management'
    }, {
        'server': '5.6.7.8',
        'vrf': 'my_vrf'
    }]
    task.state = 'present'
    add_task_name(task)
    task.commit()
    pb.add_task(task)