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

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.

5 Replies
PhoneBoy
Admin
Admin

@Eran_Habad any ideas on this one?

0 Kudos
Omer_Kleinstern
Employee
Employee

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 

 

Tobias_Moritz
Advisor

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
Omer_Kleinstern
Employee
Employee

Using empty strings as argument will work.

Eli8
Explorer

i need to set an empty string in "source-port" filed... somehow like this:
set service-tcp name 'tcp-8921' source-port ''
and it does not work...
is the mentioned fix already available now?

PS: or is there another way to bring a field back to its default value?

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events