ONL Configuration Defaults

This commit is contained in:
Jeffrey Townsend
2016-06-02 19:35:12 +00:00
parent f34662cb60
commit 9e2ab9b853
2 changed files with 22 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
#!/usr/bin/python
import os
import sys
from onl.sysconfig import sysconfig
import yaml
if len(sys.argv) == 2:
try:
print yaml.dump((eval("sysconfig.%s" % sys.argv[1])), default_flow_style=False)
except AttributeError, e:
print "Path %s is not in the config." % sys.argv[1]
else:
print sysconfig['OnlSystemConfig'].dump()

View File

@@ -1,9 +1,10 @@
############################################################
#
# ONL System Configuration
# ONL Default System Configuration.
#
# These provide the base default values for all sysconfig keys.
#
############################################################
upgrade:
onie:
auto-upgrade: advisory
@@ -16,7 +17,6 @@ upgrade:
- $PLATFORM.itb
- onl-loader-fit.itb
pki:
key:
name: key.pem
@@ -32,4 +32,8 @@ pki:
commonName: Networking
organizationalUnitName: Open Network Linux
emailAddress: support@bigswitch.com
cdays: 3600
cdays: 3600