Example #1
0
    def test_to_actions_pop_mpls(self):
        dp = _Datapath()

        acts = [{'type': 'POP_MPLS', 'ethertype': 0x0800}]
        result = ofctl_v1_3.to_actions(dp, acts)
        insts = result[0]
        act = insts.actions[0]
        ok_(isinstance(act, OFPActionPopMpls))
        eq_(act.ethertype, 0x0800)
Example #2
0
    def test_to_actions_pop_mpls(self):
        dp = ofproto_protocol.ProtocolDesc(version=ofproto_v1_3.OFP_VERSION)

        acts = [
            {
                'type': 'POP_MPLS',
                'ethertype': 0x0800
            }
        ]
        result = ofctl_v1_3.to_actions(dp, acts)
        insts = result[0]
        act = insts.actions[0]
        ok_(isinstance(act, OFPActionPopMpls))
        eq_(act.ethertype, 0x0800)
    def test_to_actions_pop_mpls(self):
        dp = ofproto_protocol.ProtocolDesc(version=ofproto_v1_3.OFP_VERSION)

        acts = [
            {
                'type': 'POP_MPLS',
                'ethertype': 0x0800
            }
        ]
        result = ofctl_v1_3.to_actions(dp, acts)
        insts = result[0]
        act = insts.actions[0]
        ok_(isinstance(act, OFPActionPopMpls))
        eq_(act.ethertype, 0x0800)
    def test_to_actions_pop_mpls(self):
        dp = _Datapath()

        acts = [
            {
                'type': 'POP_MPLS',
                'ethertype': 0x0800
            }
        ]
        result = ofctl_v1_3.to_actions(dp, acts)
        insts = result[0]
        act = insts.actions[0]
        ok_(isinstance(act, OFPActionPopMpls))
        eq_(act.ethertype, 0x0800)