ci: cdrouter-dut-flush-dns-relay-cache.sh: rename DNS.Relay.X_PRPL-COM_Config

After aligning the tr181-dns datamodel with the tr181 v2.18 datamodel,
the DNS.Relay.X_PRPL-COM_Config object no longer exists:

  Running .gitlab/scripts/dut-init/cdrouter-dut-flush-dns-relay-cache.sh
  Command failed: Request timed out
  > DNS.Relay.X_PRPL-COM_Config.[Alias=="lan"].FlushCache()
  ERROR: No objects found DNS.Relay.X_PRPL-COM_Config.[Alias=="lan"].FlushCache

So lets fix it by using the current DNS.Relay.Config without the prefix.

References: PCF-1492
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
This commit is contained in:
Petr Štetiar 2025-04-08 19:44:33 +00:00
parent 086792c0b0
commit 533c7c32a1
No known key found for this signature in database
GPG Key ID: 58EE120F30CC02D3

View File

@ -1,4 +1,4 @@
#!/bin/bash
ssh "root@$TARGET_LAN_IP" "ubus -t 180 wait_for DNS.Relay.X_PRPL-COM_Config.1"
ssh "root@$TARGET_LAN_IP" "ba-cli 'DNS.Relay.X_PRPL-COM_Config.[Alias==\"lan\"].FlushCache()'"
ssh "root@$TARGET_LAN_IP" "ubus -t 180 wait_for DNS.Relay.Config.1"
ssh "root@$TARGET_LAN_IP" "ba-cli 'DNS.Relay.Config.[Alias==\"lan\"].FlushCache()'"