services/protocols: fix pep8

Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Yoshihiro Kaneko 2014-05-13 20:46:56 +09:00 committed by FUJITA Tomonori
parent 039f9a154c
commit c468fdd126
9 changed files with 61 additions and 59 deletions

View File

@ -45,7 +45,8 @@ class VRRPDumper(app_manager.RyuApp):
# or
#
# RFC 5795 6.4.1
#(115)+ If the protected IPvX address is an IPv4 address, then:
# (115)+ If the protected IPvX address is an IPv4 address,
# then:
# (120) * Broadcast a gratuitous ARP request containing the
# virtual router MAC address for each IP address associated
# with the virtual router.
@ -67,7 +68,8 @@ class VRRPDumper(app_manager.RyuApp):
# or
#
# RFC 5795 6.4.2
#(375)+ If the protected IPvX address is an IPv4 address, then:
# (375)+ If the protected IPvX address is an IPv4 address,
# then:
# (380)* Broadcast a gratuitous ARP request on that interface
# containing the virtual router MAC address for each IPv4
# address associated with the virtual router.
@ -114,9 +116,9 @@ class VRRPDumper(app_manager.RyuApp):
# (645) - MUST forward packets with a destination link-layer MAC
# address equal to the virtual router MAC address.
# (650) - MUST accept packets addressed to the IPvX address(es)
#associated with the virtual router if it is the IPvX address owner
#or if Accept_Mode is True. Otherwise, MUST NOT accept these
#packets.
# associated with the virtual router if it is the IPvX address
# owner or if Accept_Mode is True. Otherwise, MUST NOT accept
# these packets.
elif new_state == vrrp_event.VRRP_STATE_BACKUP:
self.logger.info('becomes backup')

View File

@ -186,9 +186,9 @@ class RouterBase(app_manager.RyuApp):
# (645) - MUST forward packets with a destination link-layer MAC
# address equal to the virtual router MAC address.
# (650) - MUST accept packets addressed to the IPvX address(es)
#associated with the virtual router if it is the IPvX address owner
#or if Accept_Mode is True. Otherwise, MUST NOT accept these
#packets.
# associated with the virtual router if it is the IPvX address
# owner or if Accept_Mode is True. Otherwise, MUST NOT accept
# these packets.
elif new_state == vrrp_event.VRRP_STATE_BACKUP:
self._become_backup()