OpenIxia / IxNetwork

A central location for IxNetwork sample scripts and utilities. Please also visit http://openixia.com
MIT License
51 stars 59 forks source link

prefixAddrStep not available to configNetworkGroup() in IxNetRestApiProtocol.py #141

Closed ahameden closed 2 months ago

ahameden commented 1 year ago

Unable to configure prefixAddrStep via configNetworkGroup() in IxNetRestApiProtocol.py

@@ -1492,6 +1492,12 @@ class Protocol(object):
             data={'value': kwargs['numberOfAddressesAsy']}
             self.ixnObj.configMultivalue(multivalue, 'singleValue', data)

+        if 'prefixAddrStep' in kwargs:
+            response = self.ixnObj.get(self.ixnObj.httpHeader + prefixObj)
+            multivalue = response.json()['prefixAddrStep']
+            data={'value': kwargs['prefixAddrStep']}
+            self.ixnObj.configMultivalue(multivalue, 'singleValue', data)
+
         return prefixObj
hubogee commented 2 months ago

For support issues, please send an email to support.ix@keysight.com. Someone from the support team will be with you shortly. Thanks.