b class datagroup-name all - removes existing ip addresses

Hello All,

I am working with BigIP LTM VE Trial edition 10.1.0. Datagroup caled DG-TEST has a few IP addresses like below:

ltm data-group DG-TEST {

records {
    10.10.10.10/32 { }
    20.20.20.20/32 { }
    30.30.30.30/32 { }
}
type ip

}

If I type the folowing I get the info about the class:

b class DG-TEST show all

CLASS lstymqmiapub | TYPE ip 3 items

However, If I type the following

b class DG-TEST all

All existing IP addresses are removed and replaced as following:

class DG-TEST {

network default inet6

}

Is this the expected behaviour?

Apologies if this has already been asked.

Regards, Os

Its expected behavior of LTM. If you wanted to see the existing object in class. Then use below command.

b class DG-TEST list

--> List the object in specific class.

b class DG-TEST show all

--> Return all object in specific class

b class DG-TEST all

--> Return Network default.

Yeah. I’ve come a cropper on this one before.

I logged a call about it as IMO the command is a bit dangerous. Especially considering ANYONE with CLI access can accidentally do this. But was told it’s by design. I did raise an RFE IIRC. But looks like it was never looked at.

H

Thank you guys.