diff options
Diffstat (limited to 'ryu/lib/ofctl_v1_2.py')
-rw-r--r-- | ryu/lib/ofctl_v1_2.py | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/ryu/lib/ofctl_v1_2.py b/ryu/lib/ofctl_v1_2.py index a1053971..afdfaa91 100644 --- a/ryu/lib/ofctl_v1_2.py +++ b/ryu/lib/ofctl_v1_2.py @@ -13,7 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import base64 import logging import netaddr @@ -927,17 +926,5 @@ def mod_port_behavior(dp, port_config): ofctl_utils.send_msg(dp, port_mod, LOG) -def send_experimenter(dp, exp): - experimenter = exp.get('experimenter', 0) - exp_type = exp.get('exp_type', 0) - data_type = exp.get('data_type', 'ascii') - if data_type != 'ascii' and data_type != 'base64': - LOG.error('Unknown data type: %s', data_type) - data = exp.get('data', '') - if data_type == 'base64': - data = base64.b64decode(data) - - expmsg = dp.ofproto_parser.OFPExperimenter( - dp, experimenter, exp_type, data) - - ofctl_utils.send_msg(dp, expmsg, LOG) +# NOTE(jkoelker) Alias common funcitons +send_experimenter = ofctl_utils.send_experimenter |