...
++ When backing up your running configuration via 'copy running-configuration bootflash:backup-config', then execute 'configure replace bootflash:backup-config', the message 'Configure replace failed. Use 'show config-replace log verify' or 'show config-replace log exec' to see reasons for failure' will be displayed ++ When running 'show config-replace log verify' the below output is presented: switch# show config-replace log verify Operation : Config-replace to user config Checkpoint file name : .replace_tmp_5678 Scheme : tmp Cfg-replace done By : admin Cfg-replace mode : atomic Verbose : disabled Start Time : Tue, 22:48:48 08 Oct 2019 Start Time UTC : Tue, 20:48:48 08 Oct 2019 ------------------------------------------- Failed to parse: switchport trunk allowed vlan 5,7-8,11,13,16-18,20,22,24,26,29,31-33,40,48-53,56,59-61,64,67,69,72-73,75-77,79,82,84-85,87,89-90,92,96,99,106 ,111,115,125,127,129,131,135,141,143-145,149,154-157,160-161,165,169,171,174-175,177,179-180,188-189,196-197,199-200,204,212,217,222,227,232,237,240,244-246,2 53,255,258,260,262-264,266,269,274,276-277,280,283-284,286-288,291-292,295,297,299,308-309,316,318-319,322-324,329,333-334,337,344,346,348-349,351-352,354,366 ,368,375-376,378,383-384,386,392,395-397,399-404,406-408,412-414,416-417,419-421,423-425,431,433-435,438-439,441-442,446,449-450,454-455,457,459,464,469-470,4 75-476,479-480,482-483,485-486,488,492,496-500,503,507,511,513-515,518,520,522,524,528-530,532,536-538,540,542-547,549-550,554-556,558-561,564,566-568,570-571 ,573-574,578-582,589-590,593-598,600-603,605,609,614-618,621,624-626,628-629,633-637,643,646,648,652,654-656,660-661,665,676-678,686,688,690-693,695,701,728,7 30-731,734,738,754-756,768-769,771-774,779-781,785-789,791,793-796,798-799,804-806,809-811,814,816-817,824,834,841-845,848,852,855-856,858,897-900,902,907,909 -911,915,919-920,931,933-934,940,944,947,955,957,959-961,965,980-981,983,991,1050,1202,1204,1208,1210,1212,1215-1216,1222,1225,1228,1230,1233-1236,1238,1240-1 241,1248,1251-1252,1255-1263,1276-1278,1280,1283,1285-1287,1289,1291,1295-1296,1298,1300-1306,1308-1309,1313,1315,1318,1322-1323,1326-1334,1338,1340,1342-1343 ,1347,1349-1350,1355,1358,1365,1386-1388,1390-1391,1393,1395,1397,1403-1404,1406,1409-1411,1414,1417-1418,1420-1423,1426,1431,1434-1435,1437-1439,1457,1459,14 62-1463,1465-1470,1473-1474,1477,1481,1493,1495,1497-1498,1506,1654,1656,1659-1664,1666,1668,1674-1680,1682,1685,1692-1695,1703,1709-1711,1715,1718,1720-1721, 1724-1725,1727-1729,1735,1738,1755-1756,1759-1760,1763,1765,1768-1774,1778,1780-1781,1783,1785-1787,1789,1816,1818,1823-1824,1826,1833-1835,1839-1845,1850,185 3-1860,1863-1864,1867,1869,1872-1873,1877-1878,1883,1885-1886,1893,1896,1899,1901,1903,1911,1916,1923,1925,1930-1933,1938,1943,1946-1947,1951,1953,1956-1963,1 965-1967, Configuration above is invalid or not supported via CR/rollback featureFailed to parse: 1971-1972,2030-2041,2048,2177,2221-2222,3132-3140,3142-3146,3334-3335 Configuration above is invalid or not supported via CR/rollback featureFailed to parse: 3,1956-1963,1965-1967,1971-1972,2030-2041,2048,2177,2221-2222,3132-314 0,3142-3146,3200-3201,3333-3335
++ When the list of VLANs is large, such as the list below the configure replace task is seen to fail due to the parsing error mentioned in the symptoms section: interface port-channelx switchport trunk allowed vlan 5,7-8,11,13,16-18,20,22,24,26,29,31-33,40,48-53,56,59-61,64,67,69,72-73,75-77,79,82,84-85,87,89-90,92,96,99,106,111,115,125,127,129,131,135,141,143-145,149,154-157,160-161,165,169,171,174-175,177,179-180,188-189,196-197,199-200,204,212,217,222,227,232,237,240,244-246,253,255,258,260,262-264,266,269,274,276-277,280,283-284,286-288,291-292,295,297,299,308-309,316,318-319,322-324,329,333-334,337,344,346,348-349,351-352,354,366,368,375-376,378,383-384,386,392,395-397,399-404,406-408,412-414,416-417,419-421,423-425,431,433-435,438-439,441-442,446,449-450,454-455,457,459,464,469-470,475-476,479-480,482-483,485-486,488,492,496-500,503,507,511,513-515,518,520,522,524,528-530,532,536-538,540,542-547,549-550,554-556,558-561,564,566-568,570-571,573-574,578-582,589-590,593-598,600-603,605,609,614-618,621,624-626,628-629,633-637,643,646,648,652,654-656,660-661,665,676-678,686,688,690-693,695,701,728,730-731,734,738,754-756,768-769,771-774,779-781,785-789,791,793-796,798-799,804-806,809-811,814,816-817,824,834,841-845,848,852,855-856,858,897-900,902,907,909-911,915,919-920,931,933-934,940,944,947,955,957,959-961,965,980-981,983,991,1050,1202,1204,1208,1210,1212,1215-1216,1222,1225,1228,1230,1233-1236,1238,1240-1241,1248,1251-1252,1255-1263,1276-1278,1280,1283,1285-1287,1289,1291,1295-1296,1298,1300-1306,1308-1309,1313,1315,1318,1322-1323,1326-1334,1338,1340,1342-1343,1347,1349-1350,1355,1358,1365,1386-1388,1390-1391,1393,1395,1397,1403-1404,1406,1409-1411,1414,1417-1418,1420-1423,1426,1431,1434-1435,1437-1439,1457,1459,1462-1463,1465-1470,1473-1474,1477,1481,1493,1495,1497-1498,1506,1654,1656,1659-1664,1666,1668,1674-1680,1682,1685,1692-1695,1703,1709-1711,1715,1718,1720-1721,1724-1725,1727-1729,1735,1738,1755-1756,1759-1760,1763,1765,1768-1774,1778,1780-1781,1783,1785-1787,1789,1816,1818,1823-1824,1826,1833-1835,1839-1845,1850,1853-1860,1863-1864,1867,1869,1872-1873,1877-1878,1883,1885-1886,1893,1896,1899,1901,1903,1911,1916,1923,1925,1930-1933,1938,1943,1946-1947,1951,1953,1956-1963,1965-1967,1971-1972,2030-2041,2048,2177,2221-2222,3132-3140,3142-3146,3334-3335 ++ When removing VLANs 1965-1967,1971-1972,2030-2041,2048,2177,2221-2222,3132-3140,3142-3146,3334-3335 from the 'switchport trunk vlan allowed' list for example, the configure replace then occurs as expected
++ Shorten the list of the 'switchport trunk allowed vlan' list in the configuration file you are using for 'configure replace', then add any missing VLANs manually after the 'configure replace' task completes successfully