摘要 |
<p>Provided are a method and device for message adaptation. The method includes: acquiring a corresponding network administrator command code according to a message issued by a network administrator; generating a corresponding command tree according to the network administrator command code and a preset command tree configuration file, the command tree including a plurality of device command codes corresponding to the network administrator command code; combining the device command code and a parameter corresponding thereto in a preset parameter mapping configuration file to generate a device command line message for a device to perform service configuration and issuing same to the device. The method and device in the present invention effectively solve the problem of issuing order when a network administrator message converts a device command line message while reducing the processing code amount and ensuring interface extensibility.</p> |