@tjkreidl
According to xsconsole the management interface is bond0
Current Management Interface
Device bond0
MAC Address 30:3e:a7:1d:b0:90
DHCP/Static IP Static
IP address 172.28.4.11
Netmask 255.255.252.0
Gateway 172.28.4.1
Hostname dacshyp002
According the output of xe pif-list
uuid ( RO) : 0761d887-268e-5cf0-401b-a08ad7c419aa
device ( RO): bond0
MAC ( RO): 30:3e:a7:1d:b0:90
currently-attached ( RO): true
VLAN ( RO): -1
network-uuid ( RO): 28d51793-0226-cf3f-75d3-ed7c5a9d8b33
host-uuid ( RO): 41a2a448-a5dc-44c6-be44-c07540d75c60
Let's check the network
# xe network-list uuid=28d51793-0226-cf3f-75d3-ed7c5a9d8b33
uuid ( RO) : 28d51793-0226-cf3f-75d3-ed7c5a9d8b33
name-label ( RW): mgmt-bond
name-description ( RW):
bridge ( RO): xapi1
At linux level:
# ip addr show xapi1
15: xapi1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
link/ether 30:3e:a7:1d:b0:90 brd ff:ff:ff:ff:ff:ff
inet 172.28.4.11/22 brd 172.28.7.255 scope global xapi1
valid_lft forever preferred_lft forever
xapi1 is a bond of et2 and eth3. So far so good.
But if I am running the xe-reset-networking command
Your network will be re-configured as follows:
Management interface: eth4
Reset interface name rules: Yes
IP configuration mode: dhcp
IPv6 configuration mode:none
If you want to change any of the above settings, type 'no' and re-run
the command with appropriate arguments (use --help for a list of options).
Type 'yes' to continue.
Type 'no' to cancel.
no
So for some reason xcp-ng thinks the eth4 is management interface, which also has the ip-address 172.28.4.11/22 .
By the way --reset-primary is not a valid option:
# xe-reset-networking --reset-primary
Usage: xe-reset-networking [options]
xe-reset-networking: error: no such option: --reset-primary