X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FSRv6.py;h=d16c3529c315e584c7b10646cea90724f890e6dc;hb=c461e9407dc7d10a27780e0140088ae0b1adf6e8;hp=eca22a2b1744457bd9b4258a9996f38ab3d1cc31;hpb=c1c75eaaba3d25309315ac27c8aa11b4d7834151;p=csit.git diff --git a/resources/libraries/python/SRv6.py b/resources/libraries/python/SRv6.py index eca22a2b17..d16c3529c3 100644 --- a/resources/libraries/python/SRv6.py +++ b/resources/libraries/python/SRv6.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Cisco and/or its affiliates. +# Copyright (c) 2023 Cisco and/or its affiliates. # 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: @@ -222,6 +222,8 @@ class SRv6: :type sid_list: list :type mode: str """ + # TODO: Convert to use sr_policy_add_v2. + # The conversion is not straightforward so it was not done when bumping. cmd = u"sr_policy_add" args = dict( bsid_addr=IPv6Address(bsid).packed, @@ -243,7 +245,7 @@ class SRv6: :param node: Given node to show SRv6 policies on. :type node: dict """ - cmd = u"sr_policies_dump" + cmd = u"sr_policies_v2_dump" PapiSocketExecutor.dump_and_log(node, (cmd,)) @staticmethod