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)
def system_mtu(pb): task = NxosSystem(log) task.system_mtu = 9216 task.state = 'present' add_task_name(task) task.commit() pb.add_task(task)
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)
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)
def domain_lookup(pb): task = NxosSystem(log) task.domain_lookup = True task.state = 'present' add_task_name(task) task.commit() pb.add_task(task)
def hostname(pb): task = NxosSystem(log) task.hostname = 'dc-101' task.state = 'present' add_task_name(task) task.commit() pb.add_task(task)
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)