在编辑实时配置时,正在运行的区域的配置可能在外部发生更改。发生该冲突时,commit 子命令会返回一个错误。您可以重新加载配置以显示更新版本并进行编辑。
# zonecfg -z zone1 -r zonecfg:zone1> add anet;set linkname=anet1;set lower-link=net1;end zonecfg:zone1> commit zone1: error: Failed to commit. The live configuration of the zone 'zone1' changed externally. zonecfg:zone1> reload zonecfg:zone1> add anet;set linkname=anet1;set lower-link=net1;end zonecfg:zone1> commit zone1: Checking: add anet linkname=anet1 zone1: Applying changes