lib/ofctl_v1_*: Confirm hw_addr is str in mod_port_behavior
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
a40efc3a45
commit
7d626a55b2
@ -523,7 +523,7 @@ def delete_flow_entry(dp):
|
||||
|
||||
def mod_port_behavior(dp, port_config):
|
||||
port_no = int(port_config.get('port_no', 0))
|
||||
hw_addr = port_config.get('hw_addr')
|
||||
hw_addr = str(port_config.get('hw_addr'))
|
||||
config = int(port_config.get('config', 0))
|
||||
mask = int(port_config.get('mask', 0))
|
||||
advertise = int(port_config.get('advertise'))
|
||||
|
@ -907,7 +907,7 @@ def mod_group_entry(dp, group, cmd):
|
||||
|
||||
def mod_port_behavior(dp, port_config):
|
||||
port_no = int(port_config.get('port_no', 0))
|
||||
hw_addr = port_config.get('hw_addr')
|
||||
hw_addr = str(port_config.get('hw_addr'))
|
||||
config = int(port_config.get('config', 0))
|
||||
mask = int(port_config.get('mask', 0))
|
||||
advertise = int(port_config.get('advertise'))
|
||||
|
@ -1084,7 +1084,7 @@ def mod_group_entry(dp, group, cmd):
|
||||
|
||||
def mod_port_behavior(dp, port_config):
|
||||
port_no = int(port_config.get('port_no', 0))
|
||||
hw_addr = port_config.get('hw_addr')
|
||||
hw_addr = str(port_config.get('hw_addr'))
|
||||
config = int(port_config.get('config', 0))
|
||||
mask = int(port_config.get('mask', 0))
|
||||
advertise = int(port_config.get('advertise'))
|
||||
|
Loading…
Reference in New Issue
Block a user