Lines Matching full:ip
55 Get BMC IP Info
56 [Documentation] Get system IP address and prefix length.
59 # Get system IP address and prefix length details using "ip addr"
60 # Sample Output of "ip addr":
68 ... /sbin/ip addr | grep ${ethernet_interface}
70 # Get line having IP address details.
73 # List IP address details.
78 # Get all IP addresses and prefix lengths on system.
90 # Sample output of "ip route":
96 ... /sbin/ip route
103 # Sample output of "ip addr | grep ether":
110 ... /sbin/ip addr | grep ${ethernet_interface} -A 1 | grep ether
124 # Sample output of "ip addr | grep ether":
128 ... /sbin/ip addr | grep ether
177 Get List Of IP Address Via REST
178 [Documentation] Get list of IP address via REST.
182 # ip_uri_list List of IP objects.
198 Delete IP And Object
199 [Documentation] Delete IP and object.
203 # ip_addr IP address to be deleted.
204 # ip_uri_list List of IP object URIs.
206 # Find IP object having this IP address.
215 # If the given IP address is not configured, return.
216 # Otherwise, delete the IP and object.
219 ... Pass Execution IP address to be deleted is not configured.
231 # Verify whether deleted IP address is removed from BMC system.
233 ${ip_data}= Get BMC IP Info
235 ... msg=IP address not deleted.
237 Get First Non Pingable IP From Subnet
238 [Documentation] Find first non-pingable IP from the subnet and return it.
242 # host Any valid host name or IP address
245 # Non-pingable IP is unused IP address in the subnet.
246 ${host_name} ${ip_addr}= Get Host Name IP ${host}
248 # Split IP address into network part and host part.
249 # IP address will have 4 octets xx.xx.xx.xx.
260 # If IP is non-pingable, return it.
264 Fail msg=No non-pingable IP could be found in subnet ${network_part}.
367 Verify IP On BMC
368 [Documentation] Verify IP on BMC.
369 [Arguments] ${ip}
372 # ip IP address to be verified (e.g. "10.7.7.7").
374 # Get IP address details on BMC using IP command.
375 @{ip_data}= Get BMC IP Info
376 Should Contain Match ${ip_data} ${ip}/*
377 ... msg=IP address does not exist.
385 # gateway_ip Gateway IP address.
389 # If gateway IP is empty or 0.0.0.0 it will not have route entry.
392 Pass Execution Gateway IP is "0.0.0.0".
394 Should Contain ${route_info} ${gateway_ip} msg=Gateway IP address not matching.
490 Add IP Address
491 [Documentation] Add IP Address To BMC.
492 [Arguments] ${ip} ${subnet_mask} ${gateway}
496 # ip IP address to be added (e.g. "10.7.7.7").
497 # subnet_mask Subnet mask for the IP to be added
499 # gateway Gateway for the IP to be added (e.g. "10.7.7.1").
505 ${ip_data}= Create Dictionary Address=${ip}
519 # We need not check for existence of IP on BMC while adding.
535 Verify IP On BMC ${ip}
539 Delete IP Address
540 [Documentation] Delete IP Address Of BMC.
541 [Arguments] ${ip} ${valid_status_codes}=[${HTTP_OK},${HTTP_ACCEPTED},${HTTP_NO_CONTENT}]
544 # ip IP address to be deleted (e.g. "10.7.7.7").
554 IF '${network_configuration['Address']}' == '${ip}'
562 ... ${patch_list} ${null} msg=${ip} does not exist on BMC
563 Pass Execution If ${ip_found} == ${False} ${ip} does not exist on BMC
565 # Run patch command only if given IP is found on BMC
578 ${delete_status}= Run Keyword And Return Status Verify IP On BMC ${ip}
593 ${ip_data}= Get BMC IP Info
596 ... msg=IP address does not exist.
632 # ip_addr IP address of VLAN Interface.
634 # gateway_ip Gateway IP address of VLAN Interface.
644 ... ${NETWORK_MANAGER}${interface}_${id}/action/IP data=${data}
654 # Verify whether new IP address is populated on BMC system.
657 ... Verify IP On BMC ${ip_addr}
660 Should Be Equal ${status} ${False} msg=Configuration of invalid IP Failed.
662 Should Be Equal ${status} ${True} msg=Configuration of valid IP Failed.
803 Update IP Address
804 [Documentation] Update and verify IP address of BMC.
805 [Arguments] ${ip} ${new_ip} ${netmask} ${gw_ip}
809 # ip IP address to be replaced (e.g. "10.7.7.7").
810 # new_ip New IP address to be configured.
812 # gw_ip Gateway IP address.
822 # Find the position of IP address to be modified.
825 IF '${network_configuration['Address']}' == '${ip}'
832 # Modify the IP address only if given IP is found
834 ... ${patch_list} ${ip_data} msg=${ip} does not exist on BMC
835 Pass Execution If ${ip_found} == ${False} ${ip} does not exist on BMC
849 Verify IP On BMC ${new_ip}
864 Get DHCP IP Info
865 [Documentation] Return DHCP IP address, gateway and subnetmask from redfish URI.