Skip to content

L1 Source Commands #62

@romecode

Description

@romecode

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions