Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

mgmt API - howto remove ipv6-address from host/network objects

Hello community,

maybe someone can tell me, what I'm doing wrong here..

I'm not able to remove an IPv6 address from a host or network object. This is a string field, but setting it to an empty string is just ignored. I did not found a syntax example yet, how to remove a field completly.

I'm using SmartConsole CLI v1.5 (R80.30 JHFA T140) in this example.

 

> show host name host17
...
name: "host17"
type: "host"
...
ipv4-address: "192.168.1.2"
ipv6-address: "2001:DB8::12"
...
> set host name host17 ipv6-address ""
> show host name host17
...
name: "host17"
type: "host"
...
ipv4-address: "192.168.1.2"
ipv6-address: "2001:DB8::12"
...
> set host name host17 ipv6-address ''
> show host name host17
...
name: "host17"
type: "host"
...
ipv4-address: "192.168.1.2"
ipv6-address: "2001:DB8::12"
...

 

Thank you for any ideas.

4 Replies
Highlighted
Admin
Admin

@Eran_Habad any ideas on this one?

0 Kudos
Highlighted

Hi Tobias,

My name is Omer and I am leading the Management API team now.

Thank you for raising this question. We are aware there is an issue with this flow and plan to fix it very soon in all JHFs.

As a work around, you can remove the ipv6-address manually in SmartConsole until the fix will be available in JHF.

 

Thanks,

Omer 

 

Highlighted

Thanks Omer,

at least I'm not too stupid 🙂

Waiting for the JFA now.

After the fix, will it work with using empty strings as argument, or will you introduce a new option for removing fields (needs a new API version, I think)?

0 Kudos
Highlighted

Using empty strings as argument will work.