diff --git a/features/mml/mml.go b/features/mml/mml.go index 6878ca71..24c9eb47 100644 --- a/features/mml/mml.go +++ b/features/mml/mml.go @@ -616,6 +616,16 @@ func PostMMLToNF(w http.ResponseWriter, r *http.Request) { result := re1.ReplaceAllString(string(buf[0:n-len(neType)-2]), "") result = re2.ReplaceAllString(result, "") mmlResult = append(mmlResult, result) + + // UDM 特殊命令处理 + if neType == "UDM" && mml == "dec key" { + output, err := neService.NewNeInfo.NeRunSSHCmd(neInfo.NeType, neInfo.NeId, "cat /usr/local/etc/udm/ueKeyProfile.tmp") + if err != nil { + mmlResult = append(mmlResult, err.Error()) + } else { + mmlResult = append(mmlResult, output) + } + } } }