The invention discloses a network
static routing configuration method based on compatibility of an SNMP protocol and a YANG model. The network
static routing configuration method comprises the following steps: step 1,
serialization conversion from the SNMP to the YANG: an idxBuf of the SNMP is coded into a staticroutears structural body compatible with the YANG; step 2, reverse synchronization from the YANG to the SNMP: after receiving the configuration parameter data and
processing the configuration parameter data, the
protocol stack module returns a corresponding
processing result to the SNMP, and writes the FRR configuration state back to an MIB
library through an IDB operation of the SNMP; and step 3, storing and recovering large-scale
static routing configuration. According to the invention, the stock SNMP
network management system can manage the YANG equipment without being transformed, so that the upgrading cost of an operator is reduced; through the adaptive compatibility solution of the application, the
atomicity guarantee of the configuration transaction can be realized, the configuration change takes effect completely or rolls back completely, and the
intermediate state is avoided; according to the method and the device, the performance
bottleneck of large-scale static routing configuration storage is eliminated, and the configuration
recovery speed when the equipment is restarted is optimized.