Created
December 9, 2015 08:43
-
-
Save yasuhito/32f933344cdb6c9c7daf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RoutingSwitch < Trema::Controller | |
delegate :switch_ready, to: :@topology | |
delegate :features_reply, to: :@topology | |
delegate :switch_disconnected, to: :@topology | |
delegate :port_modify, to: :@topology | |
def packet_in(dpid, packet_in) | |
@topology.packet_in(dpid, packet_in) | |
@path_manager.packet_in(dpid, packet_in) unless packet_in.lldp? | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment