rest_router: make pep8 comfortable
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
e2612ddd44
commit
242f3023ea
@ -1657,9 +1657,11 @@ class OfCtl_v1_0(OfCtl):
|
||||
# Decrement TTL value is not supported at OpenFlow V1.0
|
||||
actions = []
|
||||
if src_mac:
|
||||
actions.append(ofp_parser.OFPActionSetDlSrc(mac_lib.haddr_to_bin(src_mac)))
|
||||
actions.append(ofp_parser.OFPActionSetDlSrc(
|
||||
mac_lib.haddr_to_bin(src_mac)))
|
||||
if dst_mac:
|
||||
actions.append(ofp_parser.OFPActionSetDlDst(mac_lib.haddr_to_bin(dst_mac)))
|
||||
actions.append(ofp_parser.OFPActionSetDlDst(
|
||||
mac_lib.haddr_to_bin(dst_mac)))
|
||||
if outport is not None:
|
||||
actions.append(ofp_parser.OFPActionOutput(outport))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user