Code to check newly added DNS server configuration.
Resolves openbmc/openbmc-test-automation#1867
Signed-off-by: Prashanth Katti <prkatti1@in.ibm.com>
Change-Id: I3191a26960c933347cf7b496cdb28aaf9c28bf93
diff --git a/redfish/managers/test_bmc_network_conf.robot b/redfish/managers/test_bmc_network_conf.robot
index 254d116..4f771db 100644
--- a/redfish/managers/test_bmc_network_conf.robot
+++ b/redfish/managers/test_bmc_network_conf.robot
@@ -695,6 +695,10 @@
Redfish.Patch ${REDFISH_NW_ETH0_URI} body={'StaticNameServers': ${static_name_servers}}
+ # Check if newly added DNS server is configured on BMC.
+ ${cli_nameservers}= CLI Get Nameservers
+ List Should Contain Sub List ${cli_nameservers} ${static_name_servers}
+
Delete Static Name Servers
[Documentation] Delete static name servers.