mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-10 14:56:11 +02:00
packet lib: add Connectivity Fault Management Protocol(CFM, IEEE 802.1ag)
Signed-off-by: TAKAHASHI Minoru <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
ed25eefa84
commit
cfdce1f340
@ -50,6 +50,9 @@ Protocol Header classes
|
||||
.. automodule:: ryu.lib.packet.icmpv6
|
||||
:members:
|
||||
|
||||
.. automodule:: ryu.lib.packet.cfm
|
||||
:members:
|
||||
|
||||
.. automodule:: ryu.lib.packet.tcp
|
||||
:members:
|
||||
|
||||
|
||||
1371
ryu/lib/packet/cfm.py
Normal file
1371
ryu/lib/packet/cfm.py
Normal file
File diff suppressed because it is too large
Load Diff
@ -24,6 +24,7 @@ from . import lldp
|
||||
from . import slow
|
||||
from . import llc
|
||||
from . import pbb
|
||||
from . import cfm
|
||||
from ryu.ofproto import ether
|
||||
|
||||
|
||||
@ -121,6 +122,7 @@ vlan.register_packet_type(ipv6.ipv6, ether.ETH_TYPE_IPV6)
|
||||
vlan.register_packet_type(lldp.lldp, ether.ETH_TYPE_LLDP)
|
||||
vlan.register_packet_type(slow.slow, ether.ETH_TYPE_SLOW)
|
||||
vlan.register_packet_type(llc.llc, ether.ETH_TYPE_IEEE802_3)
|
||||
vlan.register_packet_type(cfm.cfm, ether.ETH_TYPE_CFM)
|
||||
|
||||
svlan.register_packet_type(vlan, ether.ETH_TYPE_8021Q)
|
||||
svlan.register_packet_type(pbb.itag, ether.ETH_TYPE_8021AH)
|
||||
|
||||
@ -24,3 +24,4 @@ ETH_TYPE_8021AD = 0x88a8
|
||||
ETH_TYPE_LLDP = 0x88cc
|
||||
ETH_TYPE_8021AH = 0x88e7
|
||||
ETH_TYPE_IEEE802_3 = 0x05dc
|
||||
ETH_TYPE_CFM = 0x8902
|
||||
|
||||
1760
ryu/tests/unit/packet/test_cfm.py
Normal file
1760
ryu/tests/unit/packet/test_cfm.py
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user