nethesis / dev

Nethesis issue tracker
http://www.nethesis.it
4 stars 1 forks source link

NethVoice Ip setted before it is assigned to interface in dhcp mode #6166

Closed Stell0 closed 2 years ago

Stell0 commented 2 years ago

If green interface is in dhcp, it has an IP assigned by interface-update event by S70network-start action. Since S70nethvoice-update-ip is before in alphabetical order, it is executed before dhcp assigned an ip to the interface and therefore IP is empty

Steps to reproduce

Expected behavior

nethvoice-update-ip action should be completed without errors

/opt/janus/etc/janus/janus.plugin.sip.cfg and /etc/flexisip/flexisip.conf configuration files should contain the green interface IP address received via DHCP

Actual behavior

nethvoice-update-ip fails

esmith::event[9602]: Can't get green interface ip at /etc/e-smith/events/interface-update/S70nethvoice-update-ip line 16.
esmith::event[9602]: Action: /etc/e-smith/events/interface-update/S70nethvoice-update-ip FAILED: 255 [0.073204]

Some templates doesn't contains the green IP

/opt/janus/etc/janus/janus.plugin.sip.cfg
/etc/flexisip/flexisip.conf
nethbot commented 2 years ago

in 7.9.2009/nethesis-testing:

Stell0 commented 2 years ago

Test case:

nethbot commented 2 years ago

in 7.9.2009/nethesis-updates: