packetfence icon indicating copy to clipboard operation
packetfence copied to clipboard

Dns enforcement interface appear with "other" type instead of DNS Enforcement

Open fdurand opened this issue 6 years ago • 7 comments

Describe the bug Dns enforcement interface appear with "other" type instead of DNS Enforcement

Screenshots Here enp1s0 is a DNS Enforcement type:

image

Expected behavior Should see DNS Enforcement

Note: Same issue in the configurator.

fdurand avatar Apr 06 '20 13:04 fdurand

This appears to be a backend issue. Re-assigning.

Front-end is sending the following:

PATCH /api/v1/config/interface/enp0s8

Payload:

id: "enp0s8"
type: "dns-enforcement"
[snipped]

Once comitted here is the API results:

/usr/local/pf/sbin/pfperl-api get -M GET /api/v1/config/interfaces| jq '.items[3].name, .items[3].type'
"enp0s8"
"other"
[interface enp0s8]
enforcement=dns
type=internal

satkunas avatar Apr 06 '20 13:04 satkunas

This seems to be always the case

jrouzierinverse avatar Apr 06 '20 14:04 jrouzierinverse

If i edit the interface then the type is "other" and if i save the type is saved to other instead of dns, so i lost my config.

fdurand avatar Sep 21 '20 15:09 fdurand

After speaking with @fdurand. This could be handled when we rework how we deal with interfaces for the next release.

jrouzierinverse avatar Apr 07 '21 13:04 jrouzierinverse

@fdurand Verify if it is relevant.

extrafu avatar Oct 13 '21 13:10 extrafu

yes still the same

fdurand avatar Oct 13 '21 13:10 fdurand

@jrouzierinverse Bump

extrafu avatar Oct 20 '21 13:10 extrafu