mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-01-06 17:11:40 +01:00
- utility to clean known_hosts when identities of nodes defined in the cell changed Change-Id: Iab818ca9d888cfb58c98f16f62174cc75a4f32b7
10 lines
437 B
Bash
Executable File
10 lines
437 B
Bash
Executable File
#!/bin/bash
|
|
# -----------------------------------------------------------------------------
|
|
# Removes known_host entries about current ONOS cell.
|
|
# -----------------------------------------------------------------------------
|
|
|
|
for host in $OCT $OCN $(env | egrep "^OC[0-9]+" | cut -d '=' -f 2); do
|
|
ssh-keygen -F "$host" >/dev/null && ssh-keygen -R "$host"
|
|
ssh-keygen -F "[$host]:8101" >/dev/null && ssh-keygen -R "[$host]:8101"
|
|
done
|