postman批量创建业务

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

{

         "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"

                   }]

         }

}

猜你喜欢

转载自blog.csdn.net/ming1093/article/details/81179057
今日推荐