Skip to content
Snippets Groups Projects
Commit 6356b766 authored by Gregor Maier's avatar Gregor Maier
Browse files

BVS-570 handle PortStatus messages in every state during switch handshake.

or explicitly ingore it if it's safe
parent 0781fe01
No related branches found
No related tags found
No related merge requests found
......@@ -430,6 +430,12 @@ class OFChannelHandler
// need to implement since its abstract but it will never
// be called
}
@Override
void processOFPortStatus(OFChannelHandler h, OFPortStatus m)
throws IOException {
unhandledMessageReceived(h, m);
}
},
/**
......@@ -460,6 +466,12 @@ class OFChannelHandler
void processOFError(OFChannelHandler h, OFError m) {
logErrorDisconnect(h, m);
}
@Override
void processOFPortStatus(OFChannelHandler h, OFPortStatus m)
throws IOException {
unhandledMessageReceived(h, m);
}
},
/**
......@@ -497,6 +509,12 @@ class OFChannelHandler
void processOFError(OFChannelHandler h, OFError m) {
logErrorDisconnect(h, m);
}
@Override
void processOFPortStatus(OFChannelHandler h, OFPortStatus m)
throws IOException {
unhandledMessageReceived(h, m);
}
},
WAIT_SET_L2_TABLE_REPLY(false) {
......@@ -688,6 +706,12 @@ class OFChannelHandler
// TODO: we could re-set the features reply
illegalMessageReceived(h, m);
}
@Override
void processOFPortStatus(OFChannelHandler h, OFPortStatus m)
throws IOException {
h.pendingPortStatusMsg.add(m);
}
},
/**
......@@ -734,6 +758,7 @@ class OFChannelHandler
void processOFPortStatus(OFChannelHandler h, OFPortStatus m)
throws IOException {
handlePortStatusMessage(h, m, false);
}
},
......@@ -1219,10 +1244,9 @@ class OFChannelHandler
unhandledMessageReceived(h, m);
}
void processOFPortStatus(OFChannelHandler h, OFPortStatus m)
throws IOException {
unhandledMessageReceived(h, m);
}
// bi default implementation. Every state needs to handle it.
abstract void processOFPortStatus(OFChannelHandler h, OFPortStatus m)
throws IOException;
void processOFQueueGetConfigReply(OFChannelHandler h,
OFQueueGetConfigReply m)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment