[minigraph.py] Generate items needed by streaming telemetry service (#3759)
This commit is contained in:
parent
cb2e01d503
commit
bad57cc51a
@ -627,7 +627,13 @@ def parse_xml(filename, platform=None, port_config_file=None):
|
||||
'hostname': hostname,
|
||||
'hwsku': hwsku,
|
||||
'type': current_device['type']
|
||||
}}
|
||||
},
|
||||
'x509': {
|
||||
'server_crt': '/etc/sonic/telemetry/streamingtelemetryserver.cer',
|
||||
'server_key': '/etc/sonic/telemetry/streamingtelemetryclient.key',
|
||||
'ca_crt': '/etc/sonic/telemetry/dsmsroot.cer'
|
||||
}
|
||||
}
|
||||
results['BGP_NEIGHBOR'] = bgp_sessions
|
||||
results['BGP_MONITORS'] = bgp_monitors
|
||||
results['BGP_PEER_RANGE'] = bgp_peers_with_range
|
||||
@ -806,6 +812,13 @@ def parse_xml(filename, platform=None, port_config_file=None):
|
||||
'status': 'enabled'
|
||||
}
|
||||
}
|
||||
results['TELEMETRY'] = {
|
||||
'gnmi': {
|
||||
'client_auth': 'true',
|
||||
'port': '50051',
|
||||
'log_level': '2'
|
||||
}
|
||||
}
|
||||
|
||||
# Do not configure the minigraph's mirror session, which is currently unused
|
||||
# mirror_sessions = {}
|
||||
|
Loading…
Reference in New Issue
Block a user