From 7bc6374158475825861c5420670e829daf285002 Mon Sep 17 00:00:00 2001 From: mpenning Date: Fri, 27 Oct 2023 06:27:05 -0500 Subject: [PATCH] Fix typos in factory example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c78d0ae..862779a 100644 --- a/README.md +++ b/README.md @@ -186,7 +186,7 @@ for ccp_obj in parse.find_objects('^interface'): ########################################################################## intf_dict = ccp_obj.re_match_iter_typed( r"ip\s+address\s+(?P\S.+)$", - groupdict={"addr": IPv4Obj}, + groupdict={"v4addr": IPv4Obj}, default=None ) intf_ipv4obj = intf_dict["v4addr"] @@ -196,7 +196,7 @@ for ccp_obj in parse.find_objects('^interface'): ########################################################################## intf_dict = ccp_obj.re_match_iter_typed( r"ipv6\s+address\s+(?P\S.+)\s+(eui.64)$", - groupdict={"addr": IPv6Obj}, + groupdict={"v6addr": IPv6Obj}, default=None ) intf_ipv6obj = intf_dict["v6addr"]