Lines Matching +full:mac +full:- +full:address

10 # MAC input from user.
16 Check And Reset MAC
17 [Documentation] Update BMC with user input MAC address.
21 # mac_address The mac address (e.g. 00:01:6c:80:02:28).
29 ... cat /sys/class/net/${ethernet_interface}/address
31 ... Set MAC Address
34 Set MAC Address
35 [Documentation] Update eth0 with input MAC address.
39 # mac_address The mac address (e.g. 00:01:6c:80:02:28).
50 ... cat /sys/class/net/${ethernet_interface}/address
55 [Documentation] Get system IP address and prefix length.
58 # Get system IP address and prefix length details using "ip addr"
69 # Get line having IP address details.
72 # List IP address details.
100 # TODO: openbmc/openbmc-test-automation#1331
101 Get BMC MAC Address
102 [Documentation] Get system MAC address.
112 ... /sbin/ip addr | grep ${ethernet_interface} -A 1 | grep ether
114 # Split the line and return MAC address.
123 Get BMC MAC Address List
124 [Documentation] Get system MAC address
132 # Split the line and return MAC address.
156 Get FW_Env MAC Address
157 [Documentation] Get FW_Env MAC address.
170 # Split the line and return MAC address.
179 Get List Of IP Address Via REST
180 [Documentation] Get list of IP address via REST.
194 ${ip_addr}= Read Attribute ${ip_uri} Address
205 # ip_addr IP address to be deleted.
208 # Find IP object having this IP address.
211 ${ip_addr1}= Read Attribute ${ip_uri} Address
215 # If the given IP address is not configured, return.
219 ... Pass Execution IP address to be deleted is not configured.
231 # Verify whether deleted IP address is removed from BMC system.
235 ... msg=IP address not deleted.
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.
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}.
267 Validate MAC On BMC
268 [Documentation] Validate MAC on BMC.
272 # mac_addr MAC address of the BMC.
274 ${system_mac}= Get BMC MAC Address
275 ${mac_new_addr}= Truncate MAC Address ${system_mac} ${mac_addr}
277 ${status}= Compare MAC Address ${system_mac} ${mac_new_addr}
279 ... msg=MAC address ${system_mac} does not match ${mac_new_addr}.
281 Validate MAC On FW_Env
282 [Documentation] Validate MAC on FW_Env.
286 # mac_addr MAC address of the BMC.
288 ${fw_env_addr}= Get FW_Env MAC Address
289 ${mac_new_addr}= Truncate MAC Address ${fw_env_addr} ${mac_addr}
291 ${status}= Compare MAC Address ${fw_env_addr} ${mac_new_addr}
293 ... msg=MAC address ${fw_env_addr} does not match ${mac_new_addr}.
295 Truncate MAC Address
296 [Documentation] Truncates and returns user provided MAC address.
300 # sys_mac_addr MAC address of the BMC.
301 # user_mac_addr user provided MAC address.
308 # Truncate extra bytes and bits from MAC address
310 ${invalid_mac_byte} = Get Regexp Matches ${user_mac_list}[${mac_byte}] [^A-Za-z0-9]+
315 ... ${mac_int} >= ${256} Truncate MAC Bits ${user_mac_list}[${mac_byte}]
326 Truncate MAC Bits
327 [Documentation] Truncates user provided MAC address byte to bits.
331 # user_mac_addr_byte user provided MAC address byte to truncate bits
368 # ip IP address to be verified (e.g. "10.7.7.7").
370 # Get IP address details on BMC using IP command.
373 ... msg=IP address does not exist.
381 # gateway_ip Gateway IP address.
391 ... msg=Gateway IP address not matching.
416 ... egrep nameserver /etc/resolv.conf | cut -f2- -d ' '
427 # static_name_servers: Address for static name server
447 # "Address": "169.254.xx.xx",
453 # "Address": "xx.xx.xx.xx",
480 Add IP Address
481 [Documentation] Add IP Address To BMC.
486 # ip IP address to be added (e.g. "10.7.7.7").
495 ${ip_data}= Create Dictionary Address=${ip}
522 # Note: Network restart takes around 15-18s after patch request processing.
530 Delete IP Address
531 [Documentation] Delete IP Address Of BMC.
535 # ip IP address to be deleted (e.g. "10.7.7.7").
545 Run Keyword If '${network_configuration['Address']}' == '${ip}'
563 # Note: Network restart takes around 15-18s after patch request processing
582 Should Contain Match ${ip_data} ${network_configuration['Address']}/*
583 ... msg=IP address does not exist.
620 # ip_addr IP address of VLAN Interface.
622 # gateway_ip Gateway IP address of VLAN Interface.
642 # Verify whether new IP address is populated on BMC system.
745 Run Keyword If '${values['channel_info']['medium_type']}' == 'lan-802.3'
757 # ${channel_list} - list Contains all available active channels.
758 # ${channel_config_json} - output of /usr/share/ipmi-providers/channel_config.json file.
785 Update IP Address
786 [Documentation] Update and verify IP address of BMC.
791 # ip IP address to be replaced (e.g. "10.7.7.7").
792 # new_ip New IP address to be configured.
794 # gw_ip Gateway IP address.
802 ... Address=${new_ip} SubnetMask=${netmask} Gateway=${gw_ip}
804 # Find the position of IP address to be modified.
807 Run Keyword If '${network_configuration['Address']}' == '${ip}'
812 # Modify the IP address only if given IP is found
825 # Note: Network restart takes around 15-18s after patch request processing.
845 [Documentation] Return DHCP IP address, gateway and subnetmask from redfish URI.
852 ${ip_addr}= Set Variable ${resp['Address']}