Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

L1 Source Commands #62

Open
romecode opened this issue Nov 29, 2022 · 0 comments
Open

L1 Source Commands #62

romecode opened this issue Nov 29, 2022 · 0 comments

Comments

@romecode
Copy link

romecode commented Nov 29, 2022

Hi SdkTeam,

Having issues with L1 source API (version 2.22.1):

class ExampleDaemon(
    libapp.eossdk_utils.EosSdkAgent,
    libapp.daemon.ConfigMixin,
    libapp.daemon.StatusMixin,
    eossdk.AgentHandler,
    eossdk.TimeoutHandler,
    eossdk.IntfHandler,
    eossdk.L1SourceHandler,
):
    def __init__(self, sdk):
        self.agent_mgr = sdk.get_agent_mgr()
        self.timeout_manager = sdk.get_timeout_mgr()
        self.intf_mgr = sdk.get_intf_mgr()
        self.l1_source_mgr = sdk.get_l1_source_mgr()
        eossdk.AgentHandler.__init__(self, self.agent_mgr)
        eossdk.TimeoutHandler.__init__(self, self.timeout_manager)
        eossdk.IntfHandler.__init__(self, self.intf_mgr)
        eossdk.L1SourceHandler.__init__(self, self.l1_source_mgr)

        self.et27=eossdk.IntfId("Ethernet27")
        self.et28=eossdk.IntfId("Ethernet28")
        self.ap1=eossdk.IntfId("Application1/1")
        self.src27=eossdk.L1Source(2,self.et27)
        self.src28=eossdk.L1Source(2,self.et28)

       self.l1_source_mgr.l1_source_is(self.et27, self.src28)
  • setting intf_handler on "Application1/1" doesn't react to description changes (although this is probably unsupported atm) what is the official response on this?
  • self.l1_source_mgr.app_description_is(self.ap1, "test description") doesn't set the description.
  • self.intf_mgr.description(self.et27)
    'rr'
    self.intf_mgr.description_is(self.et27,"test description")
    results in:
    terminate called after throwing an instance of 'Tac::PermissionException' what():  write to read-only proxy /ar/Sysdb/interface/resolvedconfig/eth/phy/slice/1.intfConfig/%27Ethernet27%27.description mounted from peer at tbl://sysdb/+n

Executing this agent like this:
sudo python -m pdb <file>.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant