piolink_yhoh / piolink_yhoh.pask_test / 1.0.5 / module / pask_interface Configuring interface setting | "added in version" 2.10 of piolink_yhoh.pask_test" Authors: Yohan Oh (@piolink-yhoh)piolink_yhoh.pask_test.pask_interface (1.0.5) — module
Install with ansible-galaxy collection install piolink_yhoh.pask_test:==1.0.5
collections: - name: piolink_yhoh.pask_test version: 1.0.5
You can configure interface setting of the PAS-K.
--- - name: Interface Test hosts: all connection: local collections: - piolink_yhoh.pask_test tasks: - name: create interface ip pask_interface: prest_ip: "{{ansible_host}}" prest_port: "{{ansible_port}}" user_id: "{{user_id}}" user_pw: "{{user_pw}}" name: "test_vlan" mtu: "750" status: "down" rpf: "loose" adv_cur_hop_limit: "100" adv_reachable_time: "5012" ip: address: "172.118.20.111/32" broadcast: "172.118.20.1" overlapped: "on" - name: delete interface ip pask_interface: prest_ip: "{{ansible_host}}" prest_port: "{{ansible_port}}" user_id: "{{user_id}}" user_pw: "{{user_pw}}" name: "test_vlan" mtu: "750" status: "down" rpf: "loose" state: "absent" ip: address: "172.118.20.111/32" broadcast: "172.118.20.1" overlapped: "on"
ip: description: - Enter the ipv4 information. suboptions: address: description: - Enter the ipv4 address and net mask of the interface. required: true type: str broadcast: description: - Enter the broadcast address of the interface. type: str overlapped: description: - Enter whether to use the ip address as a nat ip or virutal ip. - If you want to set this value, you should enter 'on' type: str type: dict ip6: description: - Enter the ipv6 information. suboptions: address: description: - Enter the ipv6 address and net mask of the interface. required: true type: str adv_autonomous: description: - Enter the whether to use the ip address for autonomous address configuration. - The value should be 'enable' or 'disable'. type: str adv_on_link: description: - Enter the whether to use the ip address for on-link. - The value should be 'enable' or 'disable'. type: str adv_preferred_lifetime: description: - Set address autoconfiguration remain prefferred in seconds. type: str adv_router_addr: description: - If you want to set the network prefix instead of the interface address, enter 'enable'. - Otherwise enter 'disable'. type: str adv_valid_lifetime: description: - Enter the valid time of the prefix in seconds. type: str broadcast: description: - Enter the broadcast address of the interface. type: str type: dict mtu: description: - Enter the mtu of the interface. type: str rpf: description: - Enter how to use rpf(Reverse Path Forwarding) function of the interface. - The value should be 'default', 'strict' or 'loose'. type: str name: description: - Enter the interface name. required: true type: str state: description: - Enter the status of this configuration. - If you want to delete this PAS-K configuration, enter absent, - otherwise, you can enter present or you don't have to do enter anything. type: str status: description: - Enter the status of the interface. - The value should be 'up' or 'down'. type: str user_id: description: - Enter the PAS-K user id. required: true type: str user_pw: description: - Enter the PAS-K user password. required: true type: str prest_ip: description: - Enter the PAS-K IP address. required: true type: str prest_port: description: - Enter the port number of PAS-K used for PREST-API. required: true type: str adv_send_advert: description: - Enter whether to use router advertisements and solicitations. - The value should be 'enable' or 'disable'. type: str adv_cur_hop_limit: description: - Enter the default hop count. type: str adv_retrans_timer: description: - Enter the wait time in milliseconds. type: str adv_reachable_time: description: - Enter the reachability time in milliseconds. type: str adv_default_lifetime: description: - Enter the lifetime in seconds. type: str max_rtr_adv_interval: description: - Enter the maximum time R/A in seconds. type: str min_rtr_adv_interval: description: - Enter the minimum time R/A in seconds. type: str