@@ -684,7 +684,7 @@ json_parse_network_interface(json_t *network_interface, bbl_network_config_s *ne
684684 "isis-l1-priority" , "isis-l2-priority" ,
685685 "ospfv2-instance-id" , "ospfv2-metric" , "ospfv2-type" ,
686686 "ospfv3-instance-id" , "ospfv3-metric" , "ospfv3-type" ,
687- "cfm-cc" , "cfm-level" , "cfm-ma-id" , "cfm-ma-name" , "cfm-seq" ,
687+ "cfm-cc" , "cfm-level" , "cfm-ma-id" , "cfm-ma-name" , "cfm-seq" , "cfm-vlan-priority" ,
688688 "ldp-instance-id" , "a10nsp" , "a10nsp-tx-label"
689689 };
690690 if (!schema_validate (network_interface , "network" , schema ,
@@ -889,6 +889,10 @@ json_parse_network_interface(json_t *network_interface, bbl_network_config_s *ne
889889 fprintf (stderr , "JSON config error: Missing network->cfm-ma-name\n" );
890890 return false;
891891 }
892+ JSON_OBJ_GET_NUMBER (network_interface , value , "network" , "cfm-vlan-priority" , 0 , 7 );
893+ if (value ) {
894+ network_config -> cfm_vlan_priority = json_number_value (value );
895+ }
892896
893897 JSON_OBJ_GET_BOOL (network_interface , value , "network" , "a10nsp" );
894898 if (value ) {
@@ -933,7 +937,7 @@ json_parse_access_interface(json_t *access_interface, bbl_access_config_s *acces
933937 "session-group-id" , "stream-group-id" ,
934938 "session-limit" , "arp-client-group-id" ,
935939 "http-client-group-id" , "icmp-client-group-id" ,
936- "cfm-cc" , "cfm-level" , "cfm-ma-id" , "cfm-ma-name" , "cfm-seq"
940+ "cfm-cc" , "cfm-level" , "cfm-ma-id" , "cfm-ma-name" , "cfm-seq" , "cfm-vlan-priority"
937941 };
938942 if (!schema_validate (access_interface , "access" , schema ,
939943 sizeof (schema )/sizeof (schema [0 ]))) {
@@ -1332,6 +1336,10 @@ json_parse_access_interface(json_t *access_interface, bbl_access_config_s *acces
13321336 fprintf (stderr , "JSON config error: Missing access->cfm-ma-name\n" );
13331337 return false;
13341338 }
1339+ JSON_OBJ_GET_NUMBER (access_interface , value , "access" , "cfm-vlan-priority" , 0 , 7 );
1340+ if (value ) {
1341+ access_config -> cfm_vlan_priority = json_number_value (value );
1342+ }
13351343
13361344 if (access_config -> access_type == ACCESS_TYPE_PPPOE ) {
13371345 /* Disable IPv4 on PPPoE if IPCP is disabled. */
0 commit comments