这是流策略的命令行
Malmo5112(config)# 
       0        1  qosBindSw_CMD                   flow-policy <frameid/slotid/portid> {policy-profile <policy-profile-id> rule-profile <rule-profile-id>}*8 
       1        1  config_add_policy_prf_cmd       flow-policy-profile add <name> {[id] <id>}*1 {[pri] <1-12>}*1 {[acl] [enable|disable]}*1     {[forward] [enable|disable]}*1 {[re-cos] [enable|disable]}*1 {[cos] <0-7>}*1         {[re-dscp] [enable|disable]}*1 {[dscp] <0-63>}*1 {[re-traff] [enable|disable]}*1 {[traff] <traff>}*1    {[re-queue] [enable|disable]}*1 {[queue] <0-7>}*1 {[re-port] [enable|disable]}*1 {[rdport] <port>}*1         {[flow-mirr] [enable|disable]}*1 {[mirrport] <port>}*1 {[rate-limit] [enable|disable]}*1 {[cir] <cir>}*1        {[cbs] <cbs>}*1 {[ebs] <ebs>}*1 {[pir] <pir>}*1 {[re-vlan] [enable|disable]}*1 {[vlanact] [add|tras]}*1      {[vid] <1-4095>}*1 {[re-mirror] [enable|disable]}*1
       2        1  del_policy_prf_cmd              flow-policy-profile delete [id|name] <id-or-name>
       3        1  del_policy_prf_all_cmd          flow-policy-profile delete all
       4        1  config_modify_policy_prf_cmd    flow-policy-profile modify [id|name] <id-or-name> {[pri] <1-12>}*1 {[acl] [enable|disable]}*1        {[forward] [enable|disable]}*1 {[re-cos] [enable|disable]}*1 {[cos] <0-7>}*1         {[re-dscp] [enable|disable]}*1 {[dscp] <0-63>}*1 {[re-traff] [enable|disable]}*1 {[traff] <traff>}*1    {[re-queue] [enable|disable]}*1 {[queue] <0-7>}*1 {[re-port] [enable|disable]}*1 {[rdport] <port>}*1         {[flow-mirr] [enable|disable]}*1 {[mirrport] <port>}*1 {[rate-limit] [enable|disable]}*1 {[cir] <cir>}*1        {[cbs] <cbs>}*1 {[ebs] <ebs>}*1 {[pir] <pir>}*1 {[re-vlan] [enable|disable]}*1 {[vlanact] [add|tras]}*1      {[vid] <1-4095>}*1 {[re-mirror] [enable|disable]}*1
       5        1  qosUnBindSw_CMD                 no flow-policy <frameid/slotid/portid> all
       6        1  qosUnBindSw_spc_CMD             no flow-policy <frameid/slotid/portid> {policy-profile <policy-profile-id> rule-profile <rule-profile-id>}*8
       7        0  qosBindSwShow_CMD               show flow-policy <frameid/slotid/portid>
       8        1  show_policy_prf_all_cmd         show flow-policy-profile all
       9        1  show_policy_prf_cmd             show flow-policy-profile id <prfid>
       10       1  show_policy_prf_cmd1            show flow-policy-profile name <prfname>
Malmo5112(config)# 

这是流规则的命令行
Malmo5112(config)# 
       0        1  qosBindSw_CMD                   flow-policy <frameid/slotid/portid> {policy-profile <policy-profile-id> rule-profile <rule-profile-id>}*8 
       1       14  flowRuleProfileSet_CMD          flow-rule-profile add <name> {[id] <id>}*1 {[src-mac|dst-mac|src-ipv4-addr|dst-ipv4-addr|svlan|eth-type|ip-protocol-type|cos|tos-dscp|l4-src-port|l4-dst-port|ttl|cvlan|ip-ver|traff-class|traff-label|ipv6-next-header|src-ipv6-addr|dst-ipv6-addr|ponid|onuid] [range|value_mask|equal|not_equal|exist_match|not_exist_match] <value1> [<value2>|null]}*8
       2       14  flowRuleProfileDel_CMD          flow-rule-profile delete [id|name] <id-or-name>
       3       14  flowRuleProfileModify_CMD       flow-rule-profile modify [id|name] <id-or-name> {[src-mac|dst-mac|src-ipv4-addr|dst-ipv4-addr|svlan|eth-type|ip-protocol-type|cos|tos-dscp|l4-src-port|l4-dst-port|ttl|cvlan|ip-ver|traff-class|traff-label|ipv6-next-header|src-ipv6-addr|dst-ipv6-addr|ponid|onuid] [range|value_mask|equal|not_equal|exist_match|not_exist_match] <value1> [<value2>|null]}*8
       4        1  qosUnBindSw_spc_CMD             no flow-policy <frameid/slotid/portid> {policy-profile <policy-profile-id> rule-profile <rule-profile-id>}*8
       5       14  showFlowRule_CMD1               show flow-rule-profile [all|<prfid>]
       6       14  showFlowRule_CMD2               show flow-rule-profile name <prfname>
Malmo5112(config)# 

添加流策略的命令行如下flow-policy add policy-profile rate-limit enable cir 10000 cbs 100000 ebs 0
添加流规则的命令行如下flow-rule-profile add rule1 svlan equal 1599 null，意思是规则名称为rule1，svlan=1599，

设备最多支持创建1024个流策略和1024个流规则。请梳理我的诉求为机器语言，使其更有逻辑并且信达雅。创建一个python脚本，批量生成若干个流策略和流规则。