CONTAP-49069: The "network route show" command displays "Loop detected in next() for table vifmgr_vs_routes"
Issue
- Routes are missing for the SVM svm1
 ::> net route show
 (network route show)
 Vserver Destination Gateway Metric
- --------------- --------------- ------
 Cluster
 0.0.0.0/0 10.x.219.1 20
 svm2
 0.0.0.0/0 10.y.206.1 51
 svm3
 0.0.0.0/0 10.x.219.1 20
 svm4
 0.0.0.0/0 10.x.219.1 20
 4 entries were displayed.
- Unable to add or delete routes 
 Cluster::> network route create -vserver svm1 -destination 0.0.0.0/0 -gateway 10.x.217.1 -metric 20
 Error: command failed: Duplicate route exists.
 Cluster::> network route create -vserver svm1 -destination 0.0.0.0/0 -gateway 10.x.219.1 -metric 30
 Error: command failed: Duplicate route exists.
 ::> network route show -vserver svm1 -destination * -gateway 10.x.219.1
 Vserver Destination Gateway Metric
- --------------- --------------- ------
 svm1 0.0.0.0/0 10.0.219.1 20
 ::> network routeshow -vserver svm1 -destination * -gateway 10.x.217.1
 Error: show failed: Loop detected in next() for table vifmgr_vs_routes. Next on "4 0.0.0.0/0 10.x.217.1" returned "4 0.0.0.0/24 10.x.217.1".
 Cluster::*> network route delete -vserver svm1 -destination 0.0.0.0/0 -gateway 10.x.217.1
 Error: command failed: Internal error
- MGWD log:
Tue Apr 28 2020 15:34:33 +07:00 [kern_vifmgr:info:5806] Error: Loop detected in next() for table vifmgr_vs_routes. Next on "4 0.0.0.0/0 10.0.217.1" returned "4 0.0.0.0/24 10.0.217.1".
Tue Apr 28 2020 15:34:36 +07:00 [kern_vifmgr:info:5806] E [src/rdb/sql_local_stmt.cc 371 (0x81084a200)]: error: SQL error 11 (database disk image is malformed)
