summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMinoru TAKAHASHI <takahashi.minoru7@gmail.com>2015-01-08 13:45:31 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-13 21:22:49 +0900
commit5d63bbfbafc986d49a70614dcf4f3e3de1d52ce1 (patch)
tree1586b67549ae99fcd9dc8f306fd6b05b8308e920
parentb4f21bdb60bc881fae0b9bb54345d0fc9a51dddb (diff)
ofctl_v1_0/2/3: Fix unsuitable log level
Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/lib/ofctl_v1_0.py4
-rw-r--r--ryu/lib/ofctl_v1_2.py6
-rw-r--r--ryu/lib/ofctl_v1_3.py10
3 files changed, 10 insertions, 10 deletions
diff --git a/ryu/lib/ofctl_v1_0.py b/ryu/lib/ofctl_v1_0.py
index 9480f9b2..df65db09 100644
--- a/ryu/lib/ofctl_v1_0.py
+++ b/ryu/lib/ofctl_v1_0.py
@@ -72,7 +72,7 @@ def to_actions(dp, acts):
queue_id = int(a.get('queue_id', 0))
actions.append(dp.ofproto_parser.OFPActionEnqueue(port, queue_id))
else:
- LOG.debug('Unknown action type')
+ LOG.error('Unknown action type')
return actions
@@ -196,7 +196,7 @@ def to_match(dp, attrs):
tp_dst = int(value)
wildcards &= ~ofp.OFPFW_TP_DST
else:
- LOG.debug("unknown match name %s, %s, %d", key, value, len(key))
+ LOG.error("unknown match name %s, %s, %d", key, value, len(key))
match = dp.ofproto_parser.OFPMatch(
wildcards, in_port, dl_src, dl_dst, dl_vlan, dl_vlan_pcp,
diff --git a/ryu/lib/ofctl_v1_2.py b/ryu/lib/ofctl_v1_2.py
index 81b39156..9e79e23e 100644
--- a/ryu/lib/ofctl_v1_2.py
+++ b/ryu/lib/ofctl_v1_2.py
@@ -117,7 +117,7 @@ def to_actions(dp, acts):
parser.OFPInstructionWriteMetadata(
metadata, metadata_mask))
else:
- LOG.debug('Unknown action type: %s' % action_type)
+ LOG.error('Unknown action type: %s' % action_type)
inst.append(parser.OFPInstructionActions(ofp.OFPIT_APPLY_ACTIONS,
actions))
@@ -667,7 +667,7 @@ def mod_group_entry(dp, group, cmd):
type_ = type_convert.get(group.get('type', 'ALL'))
if type_ is None:
- LOG.debug('Unknown type: %s', group.get('type'))
+ LOG.error('Unknown type: %s', group.get('type'))
group_id = int(group.get('group_id', 0))
@@ -708,7 +708,7 @@ def send_experimenter(dp, exp):
exp_type = exp.get('exp_type', 0)
data_type = exp.get('data_type', 'ascii')
if data_type != 'ascii' and data_type != 'base64':
- LOG.debug('Unknown data type: %s', data_type)
+ LOG.error('Unknown data type: %s', data_type)
data = exp.get('data', '')
if data_type == 'base64':
data = base64.b64decode(data)
diff --git a/ryu/lib/ofctl_v1_3.py b/ryu/lib/ofctl_v1_3.py
index 4372e53b..b15f2b52 100644
--- a/ryu/lib/ofctl_v1_3.py
+++ b/ryu/lib/ofctl_v1_3.py
@@ -125,7 +125,7 @@ def to_actions(dp, acts):
meter_id = int(a.get('meter_id'))
inst.append(parser.OFPInstructionMeter(meter_id))
else:
- LOG.debug('Unknown action type: %s' % action_type)
+ LOG.error('Unknown action type: %s' % action_type)
inst.append(parser.OFPInstructionActions(ofp.OFPIT_APPLY_ACTIONS,
actions))
@@ -809,7 +809,7 @@ def mod_meter_entry(dp, flow, cmd):
for flag in flow_flags:
flags |= flags_convert.get(flag, 0)
if not flags:
- LOG.debug('Unknown flags: %s', flow.get('flags'))
+ LOG.error('Unknown flags: %s', flow.get('flags'))
meter_id = int(flow.get('meter_id', 0))
@@ -832,7 +832,7 @@ def mod_meter_entry(dp, flow, cmd):
dp.ofproto_parser.OFPMeterBandExperimenter(
rate, burst_size, experimenter))
else:
- LOG.debug('Unknown band type: %s', band_type)
+ LOG.error('Unknown band type: %s', band_type)
meter_mod = dp.ofproto_parser.OFPMeterMod(
dp, cmd, flags, meter_id, bands)
@@ -849,7 +849,7 @@ def mod_group_entry(dp, group, cmd):
type_ = type_convert.get(group.get('type', 'ALL'))
if type_ is None:
- LOG.debug('Unknown type: %s', group.get('type'))
+ LOG.error('Unknown type: %s', group.get('type'))
group_id = int(group.get('group_id', 0))
@@ -890,7 +890,7 @@ def send_experimenter(dp, exp):
exp_type = exp.get('exp_type', 0)
data_type = exp.get('data_type', 'ascii')
if data_type != 'ascii' and data_type != 'base64':
- LOG.debug('Unknown data type: %s', data_type)
+ LOG.error('Unknown data type: %s', data_type)
data = exp.get('data', '')
if data_type == 'base64':
data = base64.b64decode(data)