Typo fixes in lib/packet/bgp.py

A couple of minor typo fixes.

Signed-off-by: Victor J. Orlikowski <vjo@duke.edu>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Victor Orlikowski 2016-01-21 20:05:28 +00:00 committed by FUJITA Tomonori
parent c1c78269ac
commit 9386be6ebc

View File

@ -2009,7 +2009,7 @@ class BGPPathAttributeMpReachNLRI(_PathAttribute):
elif afi == addr_family.IP6:
self._next_hop_bin = addrconv.ipv6.text_to_bin(next_hop)
else:
raise ValueError('Invalid address familly(%d)' % afi)
raise ValueError('Invalid address family(%d)' % afi)
self._reserved = reserved
self.nlri = nlri
addr_cls = _get_addr_class(afi, safi)
@ -2054,7 +2054,7 @@ class BGPPathAttributeMpReachNLRI(_PathAttribute):
next_hop_len = 16
next_hop = addrconv.ipv6.bin_to_text(next_hop_bin)
else:
raise ValueError('Invalid address familly(%d)' % afi)
raise ValueError('Invalid address family(%d)' % afi)
return {
'afi': afi,