OpenIxia / ixnetwork_restpy

The IxNetwork python client.
https://openixia.github.io/ixnetwork_restpy/#/
MIT License
30 stars 16 forks source link

changing ipv4 prefix #1

Closed skayres closed 5 years ago

skayres commented 5 years ago

Hi! Great project.

Is it possible to change ipv4.prefix? Is there the setter?

ethernet = deviceGroup.Ethernet.add(Name='eth1'))
ipv4 = ethernet.Ipv4.add(Name='ip1')
ipv4.Address.Increment(start_value='1.1.1.1', step_value='1.0.0.0')
ipv4.GatewayIp.Increment(start_value='1.1.1.0', step_value='1.0.0.0')
ipv4.Prefix = 31?

Thank you.

ajbalogh commented 5 years ago

ipv4.Prefix.Single(31)