Esempio n. 1
0
dhcp_status = ixiangpf.emulation_dhcp_server_config(
    handle=deviceGroup_second_handle,
    count='5',
    lease_time='86400',
    ipaddress_count='10',
    ip_dns1='10.10.10.10',
    ip_dns1_step='0.0.0.1',
    ip_dns2='20.20.20.20',
    ip_dns2_step='0.0.1.0',
    ipaddress_pool='20.20.100.100',
    ipaddress_pool_step='0.0.0.1',
    ipaddress_pool_prefix_length='12',
    ipaddress_pool_prefix_step='1',
    dhcp_offer_router_address='20.20.200.200',
    dhcp_offer_router_address_step='0.0.0.1',
    ip_address='5.5.5.5',
    ip_step='0.0.0.1',
    ip_gateway='6.6.6.6',
    ip_gateway_step='0.0.0.1',
    ip_prefix_length='12',
    ip_prefix_step='1',
    local_mac='0000.0001.0001',
    local_mac_outer_step='0000.0001.0000',
    local_mtu='800',
    vlan_id='100',
    vlan_id_step='10',
    protocol_name="DHCP4 Server modified",
    use_rapid_commit='1',
    pool_address_increment='30.30.30.30',
    pool_address_increment_step='0.0.0.2',
    ping_timeout='10',
    ping_check='1',
    echo_relay_info='1',
    enable_resolve_gateway='0',
    manual_gateway_mac='00bd.2340.0000',
    manual_gateway_mac_step='0000.0000.0001',
)
Esempio n. 2
0
# 								DHCP SERVER

# #############################################################################

_result_ = ixiangpf.emulation_dhcp_server_config(
    handle=pppoxserver_1_handle,
    mode='create',
    dhcp6_ia_type='iana_iapd',
    protocol_name='Ixia DHCPv6 Server',
    ip_dns1='11:0:0:0:0:0:0:1',
    ip_dns2='22:0:0:0:0:0:0:1',
    ip_version='6',
    ipaddress_count='1',
    ipaddress_pool='5:a::1',
    ipaddress_pool_prefix_length='64',
    lease_time='86400',
    pool_address_increment='0:0:0:0:0:0:0:1',
    start_pool_prefix='55:aa::',
    pool_prefix_increment='1:0:0:0:0:0:0:0',
    pool_prefix_size='1',
    prefix_length='64',
    custom_renew_time='34560',
    custom_rebind_time='55296',
    use_custom_times='1',
)

dhcp_server_1_handle = _result_['dhcpv6server_handle']

time.sleep(3)
    counter_step='0',
    counter_direction='increment',
    nest_step='0',
    nest_owner=topology_2_handle,
    nest_enabled='1',
)
if multivalue_prefix['status'] != IxiaHlt.SUCCESS:
    ixnHLT_errorHandler('multivalue_config', multivalue_prefix)

multivalue_prefix_handle = multivalue_prefix['multivalue_handle']

dhcp_server_config_status1 = ixiangpf.emulation_dhcp_server_config(
    mode='create',
    handle=inner_ipv4_2_handle,
    lease_time='84600',
    ipaddress_count='100',
    ipaddress_pool=multivalue_pool_handle,
    ipaddress_pool_prefix_length=multivalue_prefix_handle,
    ip_version='4',
)
if dhcp_server_config_status1['status'] != IxiaHlt.SUCCESS:
    ixnHLT_errorHandler('emulation_dhcp_server_config',
                        dhcp_server_config_status1)

dhcp_server_handle = dhcp_server_config_status1['dhcpv4server_handle']

# #############################################################################
# 								 DHCPv4 CLIENT
# #############################################################################

device_group_chained_status_1 = ixiangpf.topology_config(