Description

  • The issue is reported with EX4600 switch
  • The switch is configured with REST-API, and the functionality works when the configuration is part of global instance
  • When REST-API configuration is associated to instance mgmt_junos, it doesn't work

Symptoms

  • REST-API will not work
  • TCP port will not be created while its associated with mgmt_Junos
  • Free BSD6

Solution

As per the feedback received from Engineering team, the switches that run Free BSD6 doesn’t include a setfib utility required for permitting process or commands to use a specific routing table apart from the default ones.

So the REST-API doesn't work when associated with mgmt_junos. This is a limitation with Free BSD6.

 

 

Problem State:

 

set system services rest routing-instance mgmt_junos 

set system management-instance

 

root# show | compare 

Nov 28 17:38:40

[edit system services rest]

+    routing-instance mgmt_junos;

[edit system]

+  management-instance;

 

{master:0}[edit]

root# commit 

Nov 28 17:38:42

configuration check succeeds

commit complete

 

{master:0}[edit]

root# run ping 10.219.20.105 

Nov 28 17:38:57

PING 10.219.20.105 (10.219.20.105): 56 data bytes

ping: sendto: No route to host

^C

--- 10.219.20.105 ping statistics ---

1 packets transmitted, 0 packets received, 100% packet loss

 

{master:0}[edit]

root# run ping 10.219.20.105 routing-instance mgmt_junos 

Nov 28 17:39:04

PING 10.219.20.105 (10.219.20.105): 56 data bytes

64 bytes from 10.219.20.105: icmp_seq=0 ttl=64 time=0.086 ms

^C

--- 10.219.20.105 ping statistics ---

1 packets transmitted, 1 packets received, 0% packet loss

round-trip min/avg/max/stddev = 0.086/0.086/0.086/0.000 ms

 

{master:0}[edit]

root# run show system connections inet | match 3000           

Nov 28 17:39:10

 

{master:0}[edit]

root# 

 

 

Working State:

 

delete system services rest routing-instance mgmt_junos 

delete system management-instance

 

root# show | compare 

[edit system services rest]

-    routing-instance mgmt_junos;

[edit system]

-  management-instance;

 

{master:0}[edit]

root# commit check 

configuration check succeeds

 

{master:0}[edit]

root# commit 

configuration check succeeds

commit complete

 

{master:0}[edit]

root# run ping 10.219.20.105 

PING 10.219.20.105 (10.219.20.105): 56 data bytes

64 bytes from 10.219.20.105: icmp_seq=0 ttl=64 time=1.518 ms

^C

--- 10.219.20.105 ping statistics ---

1 packets transmitted, 1 packets received, 0% packet loss

round-trip min/avg/max/stddev = 1.518/1.518/1.518/0.000 ms

 

{master:0}[edit]

root# run show system connections inet | match 3000 

 

{master:0}[edit]

root# run show system connections inet | match 3000    

tcp4       0      0  10.219.20.105.3000                            *.*                                           LISTEN

Modification History

2025-01-09 : Article Created