[
    "action: set_field: 18_SCTP_DST (IPv4)",
    {
        "description": "ethernet/ipv4/sctp(dst_port=2222)-->'sctp_dst=2222,actions=set_field:6789->sctp_dst,output:2'",
        "prerequisite":[
            {
                "OFPFlowMod":{
                    "table_id":0,
                    "match":{
                        "OFPMatch":{
                            "oxm_fields":[
                                {
                                    "OXMTlv":{
                                        "field":"eth_type",
                                        "value":2048
                                    }
                                },
                                {
                                    "OXMTlv":{
                                        "field":"ip_proto",
                                        "value":132
                                    }
                                },
                                {
                                    "OXMTlv":{
                                        "field":"sctp_dst",
                                        "value":2222
                                    }
                                }
                            ]
                        }
                    },
                    "instructions":[
                        {
                            "OFPInstructionActions":{
                                "actions":[
                                    {
                                        "OFPActionSetField":{
                                            "field":{
                                                "OXMTlv":{
                                                    "field":"sctp_dst",
                                                    "value":6789
                                                }
                                            }
                                        }
                                    },
                                    {
                                        "OFPActionOutput":{
                                            "port":2
                                        }
                                    }
                                ],
                                "type":4
                            }
                        }
                    ]
                }
            }
        ],
        "tests":[
            {
                "ingress":[
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
                    "ipv4(tos=32, proto=132, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
                    "sctp(chunks=[chunk_data(payload_data='0123456789abcdefghijklmnopqrstuvwxyz')], dst_port=2222, src_port=11111)"
                ],
                "egress":[
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
                    "ipv4(tos=32, proto=132, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
                    "sctp(chunks=[chunk_data(payload_data='0123456789abcdefghijklmnopqrstuvwxyz')], dst_port=6789, src_port=11111)"
                ]
            }
        ]
    },
    {
        "description": "ethernet/vlan/ipv4/sctp(dst_port=2222)-->'sctp_dst=2222,actions=set_field:6789->sctp_dst,output:2'",
        "prerequisite":[
            {
                "OFPFlowMod":{
                    "table_id":0,
                    "match":{
                        "OFPMatch":{
                            "oxm_fields":[
                                {
                                    "OXMTlv":{
                                        "field":"eth_type",
                                        "value":2048
                                    }
                                },
                                {
                                    "OXMTlv":{
                                        "field":"ip_proto",
                                        "value":132
                                    }
                                },
                                {
                                    "OXMTlv":{
                                        "field":"sctp_dst",
                                        "value":2222
                                    }
                                }
                            ]
                        }
                    },
                    "instructions":[
                        {
                            "OFPInstructionActions":{
                                "actions":[
                                    {
                                        "OFPActionSetField":{
                                            "field":{
                                                "OXMTlv":{
                                                    "field":"sctp_dst",
                                                    "value":6789
                                                }
                                            }
                                        }
                                    },
                                    {
                                        "OFPActionOutput":{
                                            "port":2
                                        }
                                    }
                                ],
                                "type":4
                            }
                        }
                    ]
                }
            }
        ],
        "tests":[
            {
                "ingress":[
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
                    "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
                    "ipv4(tos=32, proto=132, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
                    "sctp(chunks=[chunk_data(payload_data='0123456789abcdefghijklmnopqrstuvwxyz')], dst_port=2222, src_port=11111)"
                ],
                "egress":[
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
                    "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
                    "ipv4(tos=32, proto=132, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
                    "sctp(chunks=[chunk_data(payload_data='0123456789abcdefghijklmnopqrstuvwxyz')], dst_port=6789, src_port=11111)"
                ]
            }
        ]
    },
    {
        "description": "ethernet/mpls/ipv4/sctp(dst_port=2222)-->'actions=pop_mpls:0x0800,goto_table:1','table_id:1,sctp_dst=2222,actions=set_field:6789->sctp_dst,output:2'",
        "prerequisite":[
            {
                "OFPFlowMod":{
                    "table_id":0,
                    "match":{
                        "OFPMatch":{
                            "oxm_fields":[
                                {
                                    "OXMTlv":{
                                        "field":"eth_type",
                                        "value":34887
                                    }
                                }
                            ]
                        }
                    },
                    "instructions":[
                        {
                            "OFPInstructionActions":{
                                "actions":[
                                    {
                                        "OFPActionPopMpls":{
                                            "ethertype":2048
                                        }
                                    }
                                ],
                                "type":4
                            }
                        },
                        {
                            "OFPInstructionGotoTable":{
                                "table_id":1
                            }
                        }
                    ]
                }
            },
            {
                "OFPFlowMod":{
                    "table_id":1,
                    "match":{
                        "OFPMatch":{
                            "oxm_fields":[
                                {
                                    "OXMTlv":{
                                        "field":"eth_type",
                                        "value":2048
                                    }
                                },
                                {
                                    "OXMTlv":{
                                        "field":"ip_proto",
                                        "value":132
                                    }
                                },
                                {
                                    "OXMTlv":{
                                        "field":"sctp_dst",
                                        "value":2222
                                    }
                                }
                            ]
                        }
                    },
                    "instructions":[
                        {
                            "OFPInstructionActions":{
                                "actions":[
                                    {
                                        "OFPActionSetField":{
                                            "field":{
                                                "OXMTlv":{
                                                    "field":"sctp_dst",
                                                    "value":6789
                                                }
                                            }
                                        }
                                    },
                                    {
                                        "OFPActionOutput":{
                                            "port":2
                                        }
                                    }
                                ],
                                "type":4
                            }
                        }
                    ]
                }
            }
        ],
        "tests":[
            {
                "ingress":[
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
                    "mpls(bsb=1, label=100, exp=3, ttl=64)",
                    "ipv4(tos=32, proto=132, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
                    "sctp(chunks=[chunk_data(payload_data='0123456789abcdefghijklmnopqrstuvwxyz')], dst_port=2222, src_port=11111)"
                ],
                "egress":[
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
                    "ipv4(tos=32, proto=132, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
                    "sctp(chunks=[chunk_data(payload_data='0123456789abcdefghijklmnopqrstuvwxyz')], dst_port=6789, src_port=11111)"
                ]
            }
        ]
    },
    {
        "description": "ethernet/itag/ethernet/ipv4/sctp(dst_port=2222)-->'actions=pop_pbb,goto_table:1','table_id:1,sctp_dst=2222,actions=set_field:6789->sctp_dst,output:2'",
        "prerequisite":[
            {
                "OFPFlowMod":{
                    "table_id":0,
                    "match":{
                        "OFPMatch":{
                            "oxm_fields":[
                                {
                                    "OXMTlv":{
                                        "field":"eth_type",
                                        "value":35047
                                    }
                                }
                            ]
                        }
                    },
                    "instructions":[
                        {
                            "OFPInstructionActions":{
                                "actions":[
                                    {
                                        "OFPActionPopPbb":{}
                                    }
                                ],
                                "type":4
                            }
                        },
                        {
                            "OFPInstructionGotoTable":{
                                "table_id":1
                            }
                        }
                    ]
                }
            },
            {
                "OFPFlowMod":{
                    "table_id":1,
                    "match":{
                        "OFPMatch":{
                            "oxm_fields":[
                                {
                                    "OXMTlv":{
                                        "field":"eth_type",
                                        "value":2048
                                    }
                                },
                                {
                                    "OXMTlv":{
                                        "field":"ip_proto",
                                        "value":132
                                    }
                                },
                                {
                                    "OXMTlv":{
                                        "field":"sctp_dst",
                                        "value":2222
                                    }
                                }
                            ]
                        }
                    },
                    "instructions":[
                        {
                            "OFPInstructionActions":{
                                "actions":[
                                    {
                                        "OFPActionSetField":{
                                            "field":{
                                                "OXMTlv":{
                                                    "field":"sctp_dst",
                                                    "value":6789
                                                }
                                            }
                                        }
                                    },
                                    {
                                        "OFPActionOutput":{
                                            "port":2
                                        }
                                    }
                                ],
                                "type":4
                            }
                        }
                    ]
                }
            }
        ],
        "tests":[
            {
                "ingress":[
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=35047)",
                    "itag(sid=100)",
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
                    "ipv4(tos=32, proto=132, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
                    "sctp(chunks=[chunk_data(payload_data='0123456789abcdefghijklmnopqrstuvwxyz')], dst_port=2222, src_port=11111)"
                ],
                "egress":[
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
                    "ipv4(tos=32, proto=132, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
                    "sctp(chunks=[chunk_data(payload_data='0123456789abcdefghijklmnopqrstuvwxyz')], dst_port=6789, src_port=11111)"
                ]
            }
        ]
    }
]
