要在postman中创建一个新的文件夹,将报文内容单独保存到这里,例如pl就是这个批量的报文所存储的文件夹这个文件夹里只能有这一个报文内容,然后在将报文中的部分内容设为变量值的方式,如id;eline name;eline userLabel;vlan id等,然后在写一个csv文件,里面的内容是上述变量所对应的值,在选好循环次数和时间间隔,点击start test,在控制器上就可以查到批量创建的业务。附带批量创建业务时要的报文

postman批量创建业务

postman批量创建业务

postman批量创建业务

{

         "input": {

                   "id": {{eline_id}},

                   "name": {{eline_name}},

                   "user-label": {{user_label}},

                   "admin-status": "admin-up",

                   "operate-status": "operate-up",

                   "parent-ncd-id": "parent-ncd-id",

                   "snc-type": "simple",

                   "ingress-end-points": [{

                            "id": {{ingress_id}},

                            "ne-id": "openflow:4",

                            "ltp-id": 3,

                            "role": "master",

                            "access-action": "Keep",

                            "access-type": "Dot1Q",

                            "dot1q-vlan-bitmap": {{vlan_id}}

                   }],

                   "egress-end-points": [{

                            "id": {{egress_id}},

                            "ne-id": "openflow:2",

                            "ltp-id": 6,

                            "role": "master",

                            "access-action": "Keep",

                            "access-type": "Dot1Q",

                            "dot1q-vlan-bitmap": {{vlan_id}}

                   }],

                   "pw": [{

                            "encaplate-type": "cep-mpls",

                            "ctrl-word-support": "nonsupport",

                            "sn-support": "nonsupport",

                            "vccv-type": "nonsupport",

                            "conn-ack-type": "none",

                            "admin-status": "admin-up",

                            "operate-status": "operate-up",

                            "id": {{pw_id}},

                            "name": {{pw_name}},

                            "index": "1",

                            "ingress-ne-id": "openflow:4",

                            "source-ip": "10.0.51.145",

                            "egress-ne-id": "openflow:2",

                            "destination-ip": "10.0.51.143",

                            "role": "master"

                   }]

         }

}

相关文章:

  • 2022-03-04
  • 2021-08-17
  • 2021-04-29
  • 2021-09-01
  • 2021-05-31
  • 2022-02-11
  • 2021-08-10
  • 2021-12-20
猜你喜欢
  • 2021-07-10
  • 2022-03-04
  • 2022-12-23
  • 2021-06-28
  • 2021-11-09
  • 2022-12-23
相关资源
相似解决方案