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

add subscriber support to simapp #7

Merged
4 commits merged into from Jul 10, 2021
Merged

add subscriber support to simapp #7

4 commits merged into from Jul 10, 2021

Conversation

ghost
Copy link

@ghost ghost commented Jul 7, 2021

No description provided.

@@ -11,6 +11,17 @@ configuration:
APP:
ReportCaller: false
debugLevel: info
subscribers:
- ueId: 123456789123456
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

take range based argument as well. so we can configure more subscribers in one shot

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed code to support this. Done

@@ -11,6 +11,17 @@ configuration:
APP:
ReportCaller: false
debugLevel: info
subscribers:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should have range based + single subscriber both options

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, already put the one subscriber and a range based subscriber in yaml.

@@ -11,6 +11,17 @@ configuration:
APP:
ReportCaller: false
debugLevel: info
subscribers:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add final config in helm chart as well.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

simapp.go Outdated
@@ -247,6 +283,8 @@ func sendMessage(msgChan chan configMessage) {
fmt.Println("device trigger http endpoint ", devGroupHttpend)
networkSliceHttpend = "http://" + ip.String() + ":9089/config/v1/network-slice/"
fmt.Println("network slice http endpoint ", devGroupHttpend)
subscriberHttpend = "http://127.0.0.7" + ip.String() + ":5000/api/"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to pass subscriber provisioning APIs through ROC. IF ROC does not exist then pass the APIs to webui. Take the destination URI as argument from the helmchart. So code remains clean

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

helm chart + this comment will be pushed in another patch later. You can review the new patch now.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

simapp.go Outdated
@@ -104,6 +116,7 @@ type AppInfo struct {
const (
device_group = iota
network_slice
SUBSCRIBER
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we keep name in the the same format like other 2 enums ? all lower case ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

simapp.go Outdated
@@ -49,6 +51,16 @@ type IpDomain struct {
UePool string `yaml:"ue-ip-pool,omitempty" json:"ue-ip-pool,omitempty"`
}

type Subscriber struct {
UeId string `yaml:"ueId,omitempty" json:"ueId,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have UeIdStart, UeIdEnd and also UeId. Can you clarify when UeId is used ? I dont see any usage of UeId ?

Let me tell you again, 2 requirements

  1. Add single subscriber with ueid : 123456789123456
  2. Add multiple subscribers from ueid_start to ueid_end :; 123456789123456 to 123456789123459.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one format can meet 2 requirements, when the start = end, then it means just one ue.
My first version of code is like:
ueid:***
ueid_start:***
ueid_end:****
I feel not necessary, and confusing, so I improved it with removing ueid.

@sindack
Copy link

sindack commented Jul 8, 2021

Please rebase for the FOSSA Verification to pass.

 also fixed the UE id format, which should be start with imsi- in DB
@ghost
Copy link
Author

ghost commented Jul 9, 2021

Please rebase for the FOSSA Verification to pass.
done

@ghost ghost merged commit e82fea4 into omec-project:main Jul 10, 2021
This pull request was closed.
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

Successfully merging this pull request may close these issues.

2 participants