diff options
author | Vratko Polak <vrpolak@cisco.com> | 2024-11-26 14:46:52 +0100 |
---|---|---|
committer | Vratko Polak <vrpolak@cisco.com> | 2024-11-26 14:46:52 +0100 |
commit | ddea719d838f1160c78256a864b7eb8cbc4ef2ce (patch) | |
tree | 9a0951598ac20b9b64c2154d06bd5bf912ccbea3 /resources/libraries | |
parent | a59d8987a84bdd2d6a5e449c0f24d29b29cd96dd (diff) |
feat(crc): Bump messages after 24.10 release
+ Add option to skip mfib table creation, not used yet.
- Comments mentioning device tests not updated, TODO added instead.
Change-Id: I1dc24c0ba3e9f04bfe4fc139af680301dd15ae53
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'resources/libraries')
-rw-r--r-- | resources/libraries/python/IPUtil.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/resources/libraries/python/IPUtil.py b/resources/libraries/python/IPUtil.py index 933fa34211..504bc3eb69 100644 --- a/resources/libraries/python/IPUtil.py +++ b/resources/libraries/python/IPUtil.py @@ -1,5 +1,5 @@ -# Copyright (c) 2023 Cisco and/or its affiliates. -# Copyright (c) 2023 PANTHEON.tech s.r.o. +# Copyright (c) 2024 Cisco and/or its affiliates. +# Copyright (c) 2024 PANTHEON.tech s.r.o. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -778,24 +778,27 @@ class IPUtil: papi_exec.add(cmd, **args).get_reply(err_msg) @staticmethod - def add_fib_table(node, table_id, ipv6=False): + def add_fib_table(node, table_id, ipv6=False, create_mfib=True): """Create new FIB table according to ID. :param node: Node to add FIB on. :param table_id: FIB table ID. :param ipv6: Is this an IPv6 table + :param create_mfib: Whether to create also mfib table. :type node: dict :type table_id: int :type ipv6: bool + :type create_mfib: bool """ - cmd = u"ip_table_add_del" + cmd = u"ip_table_add_del_v2" table = dict( table_id=int(table_id), is_ip6=ipv6 ) args = dict( table=table, - is_add=True + create_mfib=create_mfib, + is_add=True, ) err_msg = f"Failed to add FIB table on host {node[u'host']}" |