Some customers have encountered issues where certain interfaces either did not exist or were created erroneously. Consequently, these interfaces could not be removed from the ssgconfig menu.
Gateway 10.x
Gateway 11.x
1) Stop the foundation services:
# service foundation-services stop
2) Take a backup of the interfaces file
# cp /opt/SecureSpan/Platform/l7-config/com.l7tech.platform.network.dto.NetworkInterfaces /tmp/orig.com.l7tech.platform.network.dto.NetworkInterfaces
3) Edit the file to remove the invalid interface.
On Gateway 10.x
# vi /opt/SecureSpan/Platform/l7-config/com.l7tech.platform.network.dto.NetworkInterfaces
On Gateway 11.x
# nano /opt/SecureSpan/Platform/l7-config/com.l7tech.platform.network.dto.NetworkInterfaces
Sample file entry where we want to remove an interface named deleteMe_interface
Before:
{
"interfaces": {
"deleteMe_interface": {
"nonImportableFields": null,
"protocol": "DHCP",
"device": "deleteMe_interface",
"name": null,
"dhcpHostname": "",
"hardwareAddress": null,
"onBoot": false,
"ipv4": null,
"ipv6": null
},
"ssg_eth0": {
"nonImportableFields": null,
"protocol": "DHCP",
"device": "ssg_eth0",
"name": "ssg_eth0",
"dhcpHostname": "example.domain.com",
"hardwareAddress": "00:11:22:33:44:55:66",
"onBoot": true,
"ipv4": null,
"ipv6": null
}
}
}
After Edit.
{
"interfaces": {
"ssg_eth0": {
"nonImportableFields": null,
"protocol": "DHCP",
"device": "ssg_eth0",
"name": "ssg_eth0",
"dhcpHostname": "example.domain.com",
"hardwareAddress": "00:11:22:33:44:55:66",
"onBoot": true,
"ipv4": null,
"ipv6": null
}
}
}
4) Save edited file from above vi / nano edit.
5) Backup .git file
# cp /opt/SecureSpan/Platform/l7-config/.git /tmp/orig.git
6) Remove the .git file:
# rm -rf /opt/SecureSpan/Platform/l7-config/.git
7) Start the foundation services
# service foundation-services start
This process should allow removal of the invalid interface from the ssg menu.