Skip to content

Commit

Permalink
Add yang_config_validation to minigraph.py (sonic-net#12504)
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelmsft authored Oct 28, 2022
1 parent 538e4c0 commit db74597
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/sonic-config-engine/minigraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,8 @@ def parse_xml(filename, platform=None, port_config_file=None, asic_name=None, hw
'hostname': hostname,
'hwsku': hwsku,
'type': device_type,
'synchronous_mode': 'enable'
'synchronous_mode': 'enable',
'yang_config_validation': 'disable'
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/sonic-config-engine/tests/test_cfggen_from_yang.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def test_device_metadata(self):
'hostname': 'sonic',
'hwsku': 'Force10-S6000',
'platform': 'x86_64-kvm_x86_64-r0',
'type': 'LeafRouter'
'type': 'LeafRouter',
'yang_config_validation': 'disable'
})


Expand Down
5 changes: 3 additions & 2 deletions src/sonic-config-engine/tests/test_yang_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@
"hostname": "sonic",
"hwsku": "Force10-S6000",
"type": "LeafRouter",
"platform": "x86_64-kvm_x86_64-r0"
"platform": "x86_64-kvm_x86_64-r0",
"yang_config_validation": "disable"
}
}
},
Expand Down Expand Up @@ -378,4 +379,4 @@
}
}
}
}
}

0 comments on commit db74597

Please sign in to comment.