Description

When configuring the REST API we may encounter a commit error similar to the one described in this article.

Symptoms

The following commit error will be shown

 

error: rest-api: Address X.X.X.X:3443 unavailable

error: commit failed: daemon file propagation failed

 

Solution

This commmit error is due to the way the knob behavior changes, according to the documentation:

 

Specify IP addresses for incoming connections.

https://www.juniper.net/documentation/us/en/software/junos/cli-reference/topics/ref/statement/addresses-edit-system-services-rest.html

 

 

Taking the following example:

user@R1> show configuration system services rest
http {
    port 3000;
    addresses [ 203.0.113.0 203.0.113.1 ];
}
https {
    port 3443;
    addresses [ 203.0.113.2 203.0.113.3 ];
    server-certificate testcert;
    cipher-list rsa-with-3des-ede-cbc-sha;
    mutual-authentication {
        certificate-authority testca;
    }
}
enable-explorer;

We allowing traffic from IP addresses 203.0.113.0, and 203.0.113.1

 

For reference on documentation examples:

https://www.juniper.net/documentation/us/en/software/junos/rest-api/topics/task/rest-api-configuring.html

Modification History

2024-05-22 : Article Created