Junos OS

 View Only
last person joined: yesterday 

Ask questions and share experiences about Junos OS.
  • 1.  GRPC Routing-Instance

    Posted 11-29-2023 19:18

    Hello,

    I'm upgrading my Apstra to 4.2 in my home-lab.

    Using vJunos switches (23.2R1.14).

    I'm getting some anomolies in Apstra, since Apstra is now using grpc since version 4.2

    Manually trying to enable this gets me the following error:

    [edit system services extension-service request-response grpc routing-instance]
      'routing-instance mgmt_junos'
        Referenced routing instance must be defined under [edit routing-instances] hierarchy level or in case of managment routing-instance 'mgmt_junos' make sure 'system management-instance' configuration is set
    error: configuration check-out failed: (statements constraint check failed)
    

    But the management-instance is there:

    dc3-LEAF1# show system | except SECRET-DATA 
    host-name dc3-LEAF1;
    root-authentication {
    }
    login {
        user apstra_mgr {
            full-name Juniper_Apstra;
            uid 2000;
            class super-user;
            authentication {
            }
        }
    }
    services {
        ssh {
            root-login deny;
            protocol-version v2;
        }
        extension-service {
            request-response {
                grpc {
                    ssl {
                        port 32767;
                        local-certificate aos_grpc;
                    }                       
                    ##
                    ## Warning: Referenced routing instance must be defined under [edit routing-instances] hierarchy level or in case of managment routing-instance 'mgmt_junos' make sure 'system management-instance' configuration is set
                    ##
                    routing-instance mgmt_junos;
                }
            }
        }
        netconf {
            ssh;
        }
    }
    management-instance;

    Is this a vJunos bug? Because in my other lab DC, the grpc config is pushed by Apstra without any errors. 

    Greetings,

    Bart



    ------------------------------
    Bart van Kampen
    ------------------------------


  • 2.  RE: GRPC Routing-Instance

    Posted 11-06-2024 09:13

    I know this is an older post but for others who may be interested. 

    I never define the gRPC config within my discoverable assets.  Setting the base config provided below is enough to get the node discovered in Apstra.  Once managed by Apstra it will set the grpc configuration as needed.

    Base Pristine config needed

    set system host-name leaf2
    set system root-authentication encrypted-password <root-pw>
    set system commit synchronize
    set system login user aosadmin uid 2000
    set system login user aosadmin class super-user
    set system login user aosadmin authentication encrypted-password <admin-pw>
    set system services ssh
    set system services netconf ssh
    set system management-instance
    set interfaces fxp0 unit 0 family inet address 164.187.1.6/24
    set routing-instance mgmt_junos routing-options static route 0.0.0.0/0 next-hop 164.187.1.1
    set protocols lldp interface all



    ------------------------------
    Kyle Ashcraft
    ------------------------------