mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-25 17:27:01 +00:00
updated python script and PKG.yml to current standards
This commit is contained in:
@@ -7,9 +7,9 @@ common:
|
||||
arch: amd64
|
||||
copyright: Copyright 2013, 2014, 2015 Big Switch Networks
|
||||
maintainer: support@bigswitch.com
|
||||
|
||||
comment: dummy package for ONLP on Wedge
|
||||
packages:
|
||||
- name: onlp-${platform}
|
||||
summary: ONLP Package for the ${platform} platform.
|
||||
|
||||
changelog: Change changes changes.,
|
||||
changelog: initial version
|
||||
|
||||
@@ -1,31 +1,16 @@
|
||||
from onl.platform.base import *
|
||||
from onl.vendor.accton import *
|
||||
|
||||
class OpenNetworkPlatformImplementation(OpenNetworkPlatformAccton):
|
||||
class OnlPlatform_x86_64_accton_wedge_16x_r0(OpenNetworkPlatformAccton):
|
||||
|
||||
def model(self):
|
||||
return "Wedge"
|
||||
return "Wedge-16X"
|
||||
|
||||
def platform(self):
|
||||
return "x86-64-accton-wedge-16x-r0"
|
||||
|
||||
def _plat_info_dict(self):
|
||||
return {
|
||||
platinfo.LAG_COMPONENT_MAX : 24,
|
||||
platinfo.PORT_COUNT : 16,
|
||||
platinfo.ENHANCED_HASHING : True,
|
||||
platinfo.SYMMETRIC_HASHING : True,
|
||||
}
|
||||
|
||||
def sys_init(self):
|
||||
pass
|
||||
def baseconfig(self):
|
||||
return True
|
||||
|
||||
def sys_oid_platform(self):
|
||||
# FIXME
|
||||
return ".16.1"
|
||||
|
||||
def baseconfig(self):
|
||||
return os.system(os.path.join(self.platform_basedir(), "boot", "x86-64-accton-wedge-r0-devices.sh")) == 0
|
||||
|
||||
if __name__ == "__main__":
|
||||
print OpenNetworkPlatformImplementation()
|
||||
|
||||
Reference in New Issue
Block a user