The script uses the NETCONF protocol to push a model-driven telemetry configuration. However, the <mdt-config-data> element and its child elements belong to a specific YANG model and must include the correct XML namespace (xmlns). While the outer <config> tag has an xmlns:xc attribute, the <mdt-config-data> tag lacks its required xmlns declaration, which causes the server to reject the configuration as invalid. Adding the correct xmlns attribute for the model (e.g., xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-mdt-cfg") resolves the issue.