SDN——实验脚本7-2:hardtimeout.json

JSON脚本

  • hardtimeout.json
cd lancl
sudo nano hardtimeout.json
// ctrl+o
// Enter
// ctrl+x
{
      "flow": [
            {
                  "id": "1",
                  "match": {
                        "in-port": "1",
                        "ethernet-match": {
			      "ethernet-type": {
			            "type": "0x0800"
			      }
                        },
			"ipv4-destination": "10.0.0.3/32"
                  },
                  "instructions": {
                        "instruction": [
                              {
                                    "order": "0",
                                    "apply-actions": {
                                          "action": [
                                                {
                                                      "order": "0",
                                                      "drop-action": {}
                                                }
                                          ]
                                    }
                              }
                        ]
                  },
                  "flow-name": "flow1",
                  "priority": "65535",
                  "hard-timeout": "10",
                  "cookie": "2",
                  "table_id": "0"
            }
      ]
}

posted @ 2020-10-14 21:33  兰小路  阅读(94)  评论(0编辑  收藏  举报