[Kea-users] Option82 with different versions of KEA

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Kea-users] Option82 with different versions of KEA

Batuhan Bakıp

Hi,

 

That's my configuration for option82, it is running on Kea version as 1.1.0 but it does not run Kea version as 1.3.0.

 

I look logs "reason: subnet with the prefix of '10.0.1.0/24' already exists", yes it is true but same configuration is running on kea version 1.1.0. How to do same job on version 1.3.0?

 

...

...

"client-classes": [

        {

                "name": "vlan300",

                "option-data": [

                        {

                                "name": "routers",

                                "data": "10.0.1.1"

                        }

                ]

        },

        {

                "name": "abc",

                "test": "substring(relay4[2].hex,2,4) == 0x1a2b3c4d and substring(relay4[1].hex,2,4) == 0x012C0115"

        },

        {

                "name": "def",

                "test": "substring(relay4[2].hex,2,4) == 0x4a3b2c1d and substring(relay4[1].hex,2,4) == 0x012C0101"

        },

        {

                "name": "ghj",

                "test": "substring(relay4[2].hex,2,4) == 0xd1c2b3a4 and substring(relay4[1].hex,2,4) == 0x012C0101"

        }

],

"subnet4": [

    {"subnet": "10.0.1.0/24", "client-class": "abc", "reservations": [{"ip-address": "10.0.1.32", "circuit-id": "00:04:01:2C:01:15", "client-classes": ["vlan300"] }]},

    {"subnet": "10.0.1.0/24", "client-class": "def", "reservations": [{"ip-address": "10.0.1.21", "circuit-id": "00:04:01:2C:01:01", "client-classes": ["vlan300"] }]},

    {"subnet": "10.0.1.0/24", "client-class": "ghj", "reservations": [{"ip-address": "10.0.1.11", "circuit-id": "00:04:01:2C:01:01", "client-classes": ["vlan300"] }]}

]

}

...

...


_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] Option82 with different versions of KEA

Francis Dupont
"Batuhan BAKIP" writes:
> I look logs "reason: subnet with the prefix of '10.0.1.0/24' already
> exists", yes it is true but same configuration is running on kea version
> 1.1.0. How to do same job on version 1.3.0?

=> the code checking if two subnets are the same is deeply buggy
(known problem but which requires some design to get the right fix
so its solution was postponed).
 The simplest is to use the fact the code uses the string itself to
compare subnets so changing slightly it will give what you want.
Note the bug will be fixed one day so it is not for the long term...

Regards

Francis Dupont <[hidden email]>
_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] Option82 with different versions of KEA

Batuhan Bakıp
"Francis Dupont" writes:

>The simplest is to use the fact the code uses the string itself to compare
subnets so changing slightly it will give what you want.

Thank you, I change my configuration according to your suggestion. It is
useful for me.
-----Original Message-----
From: Francis Dupont [mailto:[hidden email]]
Sent: Wednesday, May 30, 2018 4:32 PM
To: Batuhan BAKIP <[hidden email]>
Cc: [hidden email]
Subject: Re: [Kea-users] Option82 with different versions of KEA

"Batuhan BAKIP" writes:
> I look logs "reason: subnet with the prefix of '10.0.1.0/24' already
> exists", yes it is true but same configuration is running on kea
> version 1.1.0. How to do same job on version 1.3.0?

=> the code checking if two subnets are the same is deeply buggy (known
problem but which requires some design to get the right fix so its solution
was postponed).
 The simplest is to use the fact the code uses the string itself to compare
subnets so changing slightly it will give what you want.
Note the bug will be fixed one day so it is not for the long term...

Regards

Francis Dupont <[hidden email]>

_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users