In conjunction with --nbdb-source and --sbdb-source this makes sandbox troubleshooting of pre-existing deployments easier.
Signed-off-by: Dumitru Ceara <dce...@redhat.com> --- v2: - Add support for specifying a custom hostname. --- tutorial/ovs-sandbox | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/tutorial/ovs-sandbox b/tutorial/ovs-sandbox index d679cd39b..b0ea9a4c0 100755 --- a/tutorial/ovs-sandbox +++ b/tutorial/ovs-sandbox @@ -90,6 +90,8 @@ ic_nb_servers=3 ic_sb_model=clustered ic_sb_servers=3 dummy=override +hostname=sandbox +system_id=chassis-1 for option; do # This option-parsing mechanism borrowed from a Autoconf-generated @@ -160,6 +162,8 @@ OVN options: --ic-nb-servers=N number of servers in IC NB cluster (default: 3) --ic-sb-model=standalone|backup|clustered ic-southbound database model --ic-sb-servers=N number of servers in IC SB cluster (default: 3) + --hostname=NAME chassis hostname (default: sandbox) + --system-id=ID local system id (default: chassis-1) Other options: -h, --help Print this usage message. @@ -335,6 +339,18 @@ EOF --ic-sb-m*) prev=ic_sb_model ;; + --hostname=*) + hostname=$optarg + ;; + --hostname) + prev=hostname + ;; + --system-id=*) + system_id=$optarg + ;; + --system-id) + prev=system_id + ;; -R|--gdb-run) gdb_vswitchd_ex=true gdb_ovsdb_ex=true @@ -618,8 +634,8 @@ run ovn-ic-nbctl init run ovn-ic-sbctl init run ovn-nbctl set NB_Global . name=az-1 -run ovs-vsctl set open . external-ids:system-id=chassis-1 -run ovs-vsctl set open . external-ids:hostname=sandbox +run ovs-vsctl set open . external-ids:system-id=${system_id} +run ovs-vsctl set open . external-ids:hostname=${hostname} run ovs-vsctl set open . external-ids:ovn-encap-type=geneve run ovs-vsctl set open . external-ids:ovn-encap-ip=127.0.0.1 -- 2.27.0 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev